forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (51 loc) · 1.08 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
language: python
dist: xenial
python:
- 2.7
- 3.6
git:
depth: 10
services:
- postgresql
addons:
chrome: stable
cache:
pip: true
before_install:
- nvm install 10
- nvm use 10
- npm install --global [email protected]
- 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
- TEST_DATABASE_URL=postgres://travis:travis@localhost/travis
- TRAVIS_CHECK_MIGRATIONS="./manage.py makemigrations --dry-run --check"
matrix:
- RUNTEST=backend
- RUNTEST=frontend
matrix:
exclude:
# We only want to run the frontend build once.
- python: 2.7
env: RUNTEST=frontend
jobs:
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