-
Notifications
You must be signed in to change notification settings - Fork 108
/
.travis.yml
48 lines (38 loc) · 1.18 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
sudo: required
language: python
python:
- "2.7"
- "3.6"
addons:
postgresql: "9.5"
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_script:
- psql -c "CREATE DATABASE origami" -U postgres
- psql -c "CREATE USER origamiuser WITH PASSWORD 'pass'" -U postgres
- psql -c "ALTER ROLE origamiuser SET client_encoding TO 'utf8'" -U postgres
- psql -c "ALTER ROLE origamiuser SET default_transaction_isolation TO 'read committed'" -U postgres
- psql -c "ALTER ROLE origamiuser SET timezone TO 'UTC'" -U postgres
- psql -c "ALTER USER origamiuser CREATEDB" -U postgres
env:
- HOST=localhost PORT=8000 DB_NAME="origami" DB_USER="origamiuser" DB_PASS="password" DB_USER_EMAIL="[email protected]" DB_HOST="localhost" REDIS_HOST="redis"
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.txt
- yarn install --ignore-engines
script:
- npm run build
- python manage.py makemigrations
- python manage.py migrate
- python manage.py test
- coverage run --source='.' manage.py test api
cache:
directories:
- node_modules
- $HOME/.cache/pip
after_success:
- coveralls