-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.gitlab-ci.yml
43 lines (41 loc) · 1.14 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
before_script:
- export PATH="$HOME/.local/bin:$PATH"
- rm -f geckodriver.log
- cp $HOME/local.env settings/local.env
- dropdb --if-exists ontask
- createdb ontask
- python3 -m pip install --upgrade pip
- python3 -m pip install coverage
- python3 -m pip install -r requirements.txt
- python3 manage.py collectstatic --no-input
- python3 manage.py migrate
stages:
- Run tests
- Build doc
test:
stage: Run tests
script:
- coverage run ./manage.py test -v2 --failfast ontask.action ontask.column ontask.condition ontask.connection ontask.dataops ontask.logs ontask.scheduler ontask.table ontask.tasks ontask.workflow ontask.tests
- coverage html
- coverage report
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
artifacts:
paths:
- htmlcov
- .coverage
- ontask/tests/images
build_doc:
variables:
# Prevent any git checkout or cleanup. Add this for all jobs but the first one.
GIT_STRATEGY: none
stage: Build doc
script:
- cd tests/images
- bash push.sh
- cd ../..
- cd docs && make clean html copy_to_docs && cd ..
dependencies:
- test
artifacts:
paths:
- static/html