forked from lightwave-lab/lightlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
67 lines (63 loc) · 1.29 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
test:
image: python:3.6
stage: test
tags:
- docker-python
- cassander
except:
- master
script:
- pip install -U virtualenv pip
- python --version
- DOCKER=1 make test-unit-all
- make test-lint-errors
test-master:
image: python:3.6
stage: test
tags:
- docker-python
- cassander
only:
- master
script:
- pip install -U virtualenv pip
- python --version
- DOCKER=1 make test-unit-all
- make test-lint-errors
- make test-lint
deploy-dev:
stage: deploy
tags:
- jupyter-shell
- cassander
only:
- development
script:
- source $VIRTUALENVWRAPPER_HOOK_DIR/development/bin/activate
- pip install -U -r dev-requirements.txt
- pip install .
- pip install --upgrade --no-deps --force-reinstall .
deploy-dev-docs:
stage: deploy
tags:
- jupyter-shell
- cassander
only:
- development
script:
- ls -lah $DATAHOME
- test -d $DATAHOME/docs || mkdir $DATAHOME/docs
- make docs-ci
- rsync -avr --delete-after --checksum docs/_build/html/ $DATAHOME/docs
deploy-master:
stage: deploy
tags:
- jupyter-shell
- cassander
only:
- master
script:
- source $VIRTUALENVWRAPPER_HOOK_DIR/master/bin/activate
- pip install -U -r dev-requirements.txt
- pip install .
- pip install --upgrade --no-deps --force-reinstall .