-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
83 lines (76 loc) · 1.52 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
stages:
- build
- test
- deploy
- Trigger-cross-projects
build:linux:
stage: build
tags:
- linux
image:
name: condaforge/mambaforge
script:
- mamba install git
- cd tools && git pull origin master --force && cd ..
- ./tools/build.sh
artifacts:
paths:
- bld-dir/
build:windows:
stage: build
tags:
- win
image: mambaforge:vs16
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
script:
- cd tools && git pull --force && cd ..
- ./tools/build.sh
artifacts:
paths:
- bld-dir/
test:linux:
stage: test
tags:
- linux
image: condaforge/mambaforge:latest
before_script:
- apt update -yq
- apt install -yq procps wget git git-lfs
script:
- source activate base
- conda config --add channels "file://`pwd`/bld-dir"
# for tttrlib
- conda config --add channels tpeulen
- mamba install python tttrlib nose scipy
- git clone https://gitlab.peulen.xyz/tpeulen/tttr-data --depth 1
- |
cd test
nosetests
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
# Downstream projects
scikit-fluorescence:
stage: Trigger-cross-projects
trigger: skf/scikit-fluorescence