-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (39 loc) · 1.13 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
matrix:
include:
- language: python
python: 3.6
addons:
postgresql: "9.5"
services:
- postgresql
install:
- pip install -r requirements.txt
- pip install coverage
before_script:
- psql -c 'create database timebank_app;' -U postgres
- psql -c "CREATE USER timebank WITH PASSWORD 'DEBUG';" -U postgres
- psql -c "ALTER USER timebank CREATEDB;" -U postgres
script:
- pylint timebank_site/
- python timebank_site/manage.py makemigrations
- python timebank_site/manage.py migrate
- python timebank_site/manage.py migrate --run-syncdb
- coverage run timebank_site/manage.py test timebank_app.tests
- coverage report --omit="*site-packages*","*tests*" --skip-covered
- language: node_js
node_js:
- "node"
before_install:
- cd timebank_frontend
cache:
directories:
- "node_modules"
install:
- npm install
script:
- npm run test:unit
# - npm run test:e2e
# - npm run build
notifications:
email: