forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
137 lines (121 loc) · 3.76 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Config file for automatic testing at travis-ci.org
language: python
dist: trusty
sudo: required
addons:
chrome: stable
services:
- postgresql
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
matrix:
include:
- python: "3.6"
env:
- TOX_ENV=startup_provision_shutdown_without_zombies
script:
- tox -e $TOX_ENV
- python: "2.7"
env:
- TOX_ENV=pythonlint2
script:
- tox -e $TOX_ENV
- python: "3.6"
env:
- TOX_ENV=lint
- python: "2.7"
env:
- TOX_ENV=licenses
script:
- tox -e $TOX_ENV
- python: "2.7"
env:
- TOX_ENV=py2.7
script:
- tox -e $TOX_ENV
- python: "3.5"
env:
- TOX_ENV=docs
script:
- tox -e $TOX_ENV
- python: "3.4"
env:
- TOX_ENV=py3.4
- python: "3.5"
env:
- TOX_ENV=py3.5
- python: "3.6"
env:
- TOX_ENV=py3.6
- python: 3.7
dist: xenial
sudo: true
env:
- TOX_ENV=py3.7
- python: 3.8
dist: bionic
sudo: true
env:
- TOX_ENV=py3.8
- python: "2.7"
env:
- TOX_ENV=node10.x
script:
- tox -e $TOX_ENV
- python: "3.5"
env:
- TOX_ENV=postgres
- python: "2.7"
env:
- TOX_ENV=nocext
script:
- tox -e $TOX_ENV
- python: "2.7"
env:
- TOX_ENV=cext
script:
- tox -e $TOX_ENV
before_install:
# Can likely be removed once we stop using Trusty
# https://github.com/travis-ci/travis-ci/issues/8920
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- git fetch
- git describe --tags --always
# Required until this is fixed: https://github.com/travis-ci/travis-ci/issues/9112
- sudo apt-get update --option Acquire::Retries=100 --option Acquire::http::Timeout="60"
- pip install -U pip codecov virtualenv==16.7.9 tox
- . $HOME/.nvm/nvm.sh
- nvm install 10
- nvm use 10
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -c 'create database eco_test1;' -U postgres
- psql -c 'create database eco_test2;' -U postgres
- psql -c 'create database eco_test3;' -U postgres
- psql -c 'create database eco2_test1;' -U postgres
- psql -c 'create database eco2_test2;' -U postgres
- psql -c 'create database eco2_test3;' -U postgres
- psql -c 'create database eco2_test4;' -U postgres
- psql -c 'create database eco2_test5;' -U postgres
# command to run tests
script:
# Get static deps in order to try and compile them all for Python 3
- SKIP_PY_CHECK=1 make staticdeps
# Ensures that we can compile all source code files in this Python 3+ version
# This behavior is disabled in the 'include' matrix above for Python 2.7
- make staticdeps-compileall
# Remove staticdeps again, so they are not part of tox
- make clean-staticdeps
- tox -e $TOX_ENV
after_success:
- coverage combine
- codecov
notifications:
slack:
secure: RH3xqTkkoA2TATYo7onoLlAlw5t7Bek3HqN/e48e1mj3nazTUs05k12e9Cj7I/y7rBu4b1g0Fl4nJ/DOJRD/81o2ML8OAqu4Ngfg149EQysvgHki20CY1LMph0aS5HSACL1yvp8VvDmmpF0F8YGh99ZMeV3qdp0t3AVWSQVIQgVOEjUSPklsf25ikCOqzTRCz90Dp5aIlDUuXtubTATaKQiLfqW8rc/S7Q/JLepmZau5ANFz8cHXn750y6EvEREIE/0gBwH6OWOa1qWCavJPc4z9953zX7rhI85f0eaHVYQ0ojeXJjQG4MOu5kP13tkaLppe1On3fBZLPpeF791EJwgcmEFUd8hDsomfHcxXhHf7+LPwbGjelGr8iY/2ZIWuILY17FmnWyruWyusrHpA1YKBFwjqgo7E06uzwVj9npxbc+WEHuBxTDdaeFYjYRLORvOeJ9y3n+rNs2c9gCvwuq3MzhMWT+KsrrngAibns1Fz/I1YZAY3voipmabeXVLqbLvb8f8xBmwwK14ba0tGMHfnnCfivlruS49qLwpMjASEPY3H8lKyROX94aaWj+B1Fld2kX0L5GN3xkVoT1aJOgOxCF9c7w9Kf1aTcf/T4bfEzjPNf3ZH3rwy/b3YABbQAEdV8SLdrD02+CIYNPzv3/U1y3rmTSg0wLT2elumhv8=