forked from Cloud-CV/CloudCV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (37 loc) · 788 Bytes
/
.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
sudo: required
language: python
python:
- "2.7"
services:
- docker
addons:
postgresql: "9.4"
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_script:
- psql -c "CREATE DATABASE cloudcv" -U postgres
before_install:
- pip install -U pip
- nvm install 6.0.0
- nvm use 6.0.0
- npm install -g [email protected]
install:
- pip install -r requirements/dev.txt
- cd frontend && yarn install
- cd ../
script:
- flake8 ./
- py.test --cov . --cov-config .coveragerc
- cd frontend && npm run lint:build
- npm run test
- npm run build:alias
after_success:
- cd ../
- coveralls --rcfile=.coveragerc
- pip install awscli
- bash scripts/stage.sh
- bash scripts/deploy.sh
cache:
directories:
- frontend/node_modules
- $HOME/.cache/pip