forked from mr-provisioner/mr-provisioner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (54 loc) · 1.55 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
matrix:
include:
- language: python
python: 3.6
services: postgresql
addons:
postgresql: "9.4"
install:
- pip install -r requirements.txt
- pip install -r requirements.dev.txt
before_script:
- psql -c 'create database api_test;' -U postgres
- env APP_DATABASE_URI="postgresql+psycopg2://postgres@localhost/api_test" ./run.py db upgrade
script:
- make lint
- make docs
- make APP_DATABASE_URI="postgresql+psycopg2://postgres@localhost/api_test" test
- language: python
python: 3.3
services: postgresql
addons:
postgresql: "9.4"
install:
- pip install -r requirements.txt
- pip install -r requirements.dev.txt
before_script:
- psql -c 'create database api_test;' -U postgres
- env APP_DATABASE_URI="postgresql+psycopg2://postgres@localhost/api_test" ./run.py db upgrade
script:
- make lint
- make docs
- make APP_DATABASE_URI="postgresql+psycopg2://postgres@localhost/api_test" test
- language: node_js
node_js:
- 9
install:
- make -C mr_provisioner/admin/ui dist
before_script:
- cd mr_provisioner/admin/ui
script:
- npm run build
- npm run lint
- language: node_js
node_js:
- 9
script:
- make apidocs
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: docs/apidocs/public
on:
branch: master