-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gitlab-ci.yml
87 lines (80 loc) · 1.91 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
build-linux:
stage: build
script:
- module load anaconda/3
- conda activate abx-ci
- conda env update -n abx-ci -f environment.yml
- python setup.py install
test-linux:
stage: test
script:
- module load anaconda/3
- conda activate abx-ci
- python setup.py test
# build-osx:
# tags:
# - macos
# stage: build
# script:
# - conda activate abx
# - conda env update -n abx -f environment.yml
# - python setup.py install
# test-osx:
# tags:
# - macos
# stage: test
# script:
# - conda activate abx
# - python setup.py test
# abx package is available on oberon with "conda activate abx"
deploy-oberon:
stage: deploy
only:
refs:
- master
script:
- module load anaconda/3
- cd /shared/apps/ABXpy
- git pull origin master
- conda env update -n abx -f environment.yml
- conda activate abx
- python setup.py install
- python setup.py test
# documentation is available on https://docs.cognitive-ml.fr/ABXpy
deploy-doc:
stage: deploy
only:
refs:
- master
script:
- module load anaconda/3
- module load texlive/2018
- conda activate abx-ci
- sphinx-build doc build/doc
- scp -r build/doc/* cognitive-ml.fr:/var/www/docs.cognitive-ml.fr/ABXpy
# abx package available on conda with "conda install -c coml
# abx". Build and upload the package only on new git tags or
# manual triggers.
deploy-conda-linux:
stage: deploy
only:
- tags
- triggers
script:
- module load anaconda/3
- conda activate abx-ci
- cd .conda
- conda build -c coml -c conda-forge --user coml --token $CONDA_TOKEN --skip-existing .
- conda build purge
deploy-conda-osx:
tags:
- macos
stage: deploy
only:
- tags
- triggers
script:
- conda activate abx
- cd .conda
- conda build -c coml -c conda-forge --user coml --token $CONDA_TOKEN --skip-existing .
- conda build purge