forked from umit-iace/tool-pywisp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (38 loc) · 891 Bytes
/
.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
stages:
- docu
- deploy
docu:
stage: docu
tags:
- shell
script:
- virtualenv _venv
- source _venv/bin/activate
- pip install -r requirements.txt
- python setup.py develop
- cd docs
- export DISPLAY=:0
- xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR" make html
- rm -rf /srv/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
- mkdir -p /srv/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
- mv _build/html/* /srv/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
- cd ..
- pip uninstall -y pywisp
- deactivate
- rm -rf *
only:
- master
deploy:
stage: deploy
tags:
- shell
script:
- virtualenv _venv
- source _venv/bin/activate
- pip install -r requirements.txt
- pip install -U twine
- python setup.py sdist bdist_wheel
- twine upload dist/* --config-file /etc/pypirc
- rm -rf *
only:
- tags