forked from cfpb/consumerfinance.gov
/
.travis.yml
60 lines (48 loc) · 1.07 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
language: python
dist: xenial
python:
- 3.6
git:
depth: 10
services:
- postgresql
addons:
chrome: stable
cache:
pip: true
before_install:
- nvm install 10
- nvm use 10
- npm install --global yarn@1.15.2
- sudo rm -f /etc/boto.cfg
install:
- ./travis_install.sh
branches:
only:
- master
before_script:
- psql -c "ALTER USER travis WITH PASSWORD 'travis';"
script:
- ./travis_run.sh
env:
global:
- COVERALLS_PARALLEL=true
- DATABASE_URL=postgres://travis:travis@localhost/travis
- CI_CHECK_MIGRATIONS="./manage.py makemigrations --dry-run --check"
matrix:
- RUNTEST='backend'
- RUNTEST='backend' TOXENV='unittest-future'
- RUNTEST='frontend'
jobs:
allow_failures:
- env: RUNTEST='backend' TOXENV='unittest-future'
include:
# This stage will run after the default testing stage succeeds.
- stage: Build docs and push them to GitHub Pages
if: type != pull_request
env: RUNTEST=docs
deploy:
provider: pages
local_dir: site
skip-cleanup: true
github_token: $GITHUB_TOKEN