-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
89 lines (83 loc) · 2.06 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
stages:
- build
- test
- deploy
- Trigger-cross-projects
build:linux:
stage: build
tags:
- linux
image: condaforge/mambaforge:latest
before_script:
- apt update -yq && apt -yq install build-essential
- git submodule update --init --recursive --remote
script:
- ./tools/build.sh
artifacts:
paths:
- bld-dir/
build:windows:
stage: build
image: mambaforge:vs16
tags:
- win
script:
- cmd.exe
- conda activate base
- cd tools && git pull --force && cd..
- .\tools\build.bat
artifacts:
paths:
- bld-dir/
build:osx:
stage: build
tags:
- osx
before_script:
- git submodule update --init --recursive --remote
script:
- ./tools/build.sh
artifacts:
paths:
- bld-dir/
test:linux:
stage: test
tags:
- linux
image: condaforge/mambaforge:latest
before_script:
# Issue with OpenGL and X11 display
# See: https://stackoverflow.com/questions/65675765/is-it-possible-to-run-x11-on-gitlab-ci
# See: https://github.com/conda-forge/pygridgen-feedstock/issues/10
# procps is used to grep the process by name to kill it when needed
- apt update -yq
- apt install -yq xorg-dev libglu1-mesa libgl1-mesa-dev xvfb libxinerama1 libxcursor1 libgl1-mesa-glx procps
script:
- source activate
# Disable Numba JIT for correct coverage analysis
- export NUMBA_DISABLE_JIT=1
- cp tools/.condarc ~/.condarc
- conda config --add channels "file://`pwd`/bld-dir"
- mamba create -n test python ndxplorer
- conda activate test
# Run GUI with xvfb - no X11 screen
- |
xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR" -- ndxplorer &
sleep 10
pgrep -f ndxplorer | awk '{print "kill -9 " $1}' | sh
deploy:conda:
stage: deploy
image: condaforge/mambaforge:latest
tags:
- linux
dependencies:
- build:linux
- build:windows
- build:osx
before_script:
- git submodule update --init --recursive --remote
script:
- ./tools/deploy.sh
chisurf:
stage: Trigger-cross-projects
trigger: chisurf/chisurf