forked from fiduswriter/fiduswriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (76 loc) · 2.16 KB
/
.travis.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
language: python
python:
- "3.7"
node_js:
- "10"
dist: bionic
sudo: required
addons:
chrome: stable
before_script:
- LATEST_CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"`
- curl "https://chromedriver.storage.googleapis.com/${LATEST_CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
- unzip chromedriver_linux64.zip -d ~/bin
install:
- cd fiduswriter
- mv ../travis/configuration.py ./
- pip3 install requests[security]
- pip3 install -r requirements.txt
- pip3 install -r dev-requirements.txt
- pip3 install coverage
- pip3 install coveralls
- coverage run manage.py setup --no-static
env:
global:
- COVERALLS_PARALLEL=true
matrix:
- TEST='browser_check base'
- TEST=user
- TEST=feedback
- TEST=document.tests.test_collaboration
- TEST=document.tests.test_editor
- TEST=document.tests.test_offline
- TEST=document.tests.test_export
- TEST=document.tests.test_admin
- TEST=bibliography
- TEST=usermedia
script:
- travis_retry coverage run --concurrency=multiprocessing manage.py test $TEST
stages:
- lint
- test
- coveralls
jobs:
include:
- stage: lint
addons: {}
before_install: cd fiduswriter
install:
- pip3 install -r requirements.txt
- pip3 install coverage coveralls flake8==3.7.9
env:
- TESTS=before
- COVERALLS_PARALLEL=true
before_script: skip
script: coverage run --concurrency=multiprocessing manage.py lint
- stage: coveralls
addons: {}
before_cache: skip
cache: false
before_install: skip
install: skip
after_success: skip
env: TESTS=done
before_script: x="bas";`"$x"e64 -d <<< ZXhwb3J0IENPVkVSQUxMU19SRVBPX1RPS0VOPUlJOERBY284cU00bTZXemlHTXFjdlNTQ05vclFMVmgxTg==`
script: curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$TRAVIS_BUILD_NUMBER&payload[status]=done"
after_success:
- coverage combine
- coverage report
- coveralls
cache:
directories:
- fiduswriter/.transpile
- $HOME/.cache/pip
- static-libs
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log