-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
61 lines (53 loc) · 1.52 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
language: python
sudo: false
notifications:
email: false
services:
- postgresql
branches:
only:
- master
cache:
pip: true
directories:
- node_modules
matrix:
include:
- python: "3.6-dev" # 3.6 development branch
env: TO_RUN="coverage"
- python: "3.6-dev" # 3.7 development branch
env: TO_RUN="postgres-test"
- python: "3.6-dev"
env: TO_RUN="lint"
- python: "3.6-dev"
env: TO_RUN="mypy"
- python: "3.6-dev"
env: TO_RUN="yapf"
- python: "3.7-dev" # 3.7 development branch
env: TO_RUN="tests"
- python: "nightly" # currently points to 3.7-dev
env: TO_RUN="tests"
allow_failures:
# These are allowed to fail because Python 3.7+ chose to change its syntax
# and doesn't allow `async` as a property anymore.
- python: "3.7-dev" # 3.7 development branch
- python: "nightly" # currently points to 3.7-dev
install:
- pip install -U wheel
- pip install coveralls pytest-cov
- pip install codecov
- pip install celery[redis]
- pip install -r requirements.txt
before_script:
- mkdir -p /tmp/psef/uploads
- mkdir -p /tmp/psef/mirror_uploads
- python --version
- export PYTHONPATH="$PYTHONPATH:$(pwd)"
- export DEBUG_ON=True
- psql -c 'create database travis_ci_test;' -U postgres
- pip install travis-sphinx
script:
- bash ./.travis/run
- "[[ $TO_RUN = 'coverage' ]] && travis-sphinx build --source=docs/ || true"
after_success:
"[[ $TO_RUN = 'coverage' ]] && ( coveralls; codecov; travis-sphinx deploy -c docs.codegra.de; )"