-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
56 lines (51 loc) · 1.25 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright (c) 2020 Famedly GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
include:
- project: "famedly/company/frontend/ci-templates"
ref: main
file: "/all.yml"
stages:
- build
- test
- deploy
build_js:
image: archlinux:latest
stage: build
script:
- pacman --noconfirm -Syu
- pacman --noconfirm -S emscripten libxml2 make cmake jq
- source /etc/profile
- useradd -m build
- chown -R build .
- su -c 'make -C js' build
artifacts:
paths:
- js/Imaging.js
- js/Imaging.wasm
test_js:
image: archlinux:latest
stage: test
needs:
- build_js
script:
- pacman --noconfirm -Syu
- pacman --noconfirm -S chromium dart
- source /etc/profile
- useradd -m test
- chown -R test .
- su -c 'dart pub get' test
- su -c 'dart run test -p chrome' test
test_native:
image: archlinux:latest
stage: test
needs: []
script:
- pacman --noconfirm -Syu
- pacman --noconfirm -S dart binutils gcc make cmake
- source /etc/profile
- useradd -m test
- chown -R test .
- su -c ./scripts/prepare.sh test
- su -c 'dart pub get' test
- su -c 'LD_LIBRARY_PATH=$(pwd)/build dart run test' test
- su -c 'LD_LIBRARY_PATH=$(pwd)/build dart example/example.dart' test