This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (42 loc) · 1.74 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
language: python
dist: trusty
python:
- 3.6.1
addons:
postgresql: '9.6'
apt:
packages:
- wkhtmltopdf
before_install:
- export DJANGO_SETTINGS_MODULE=BunqWebApp.settings
- export PYTHONPATH=$HOME/builds/OGKevin/ComBunqWebApp
install:
- pip install -r requirements.txt
- pip install coveralls
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install --production
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- npm install -g bower
- bower install
# - sudo /etc/init.d/postgresql stop
# - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key
# add -
# - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
# 9.5" >> /etc/apt/sources.list.d/postgresql.list'
# - sudo apt-get update
# - sudo apt-get install postgresql-9.5
- psql -c "CREATE DATABASE travisci;" -U postgres
- ./manage.py migrate
- ./manage.py collectstatic --noinput -v 0
script:
- coverage run ./manage.py test
after_success:
- coveralls
notifications:
slack:
secure: TxpFI23MqaypF9G5ttDKi8Kgjp3qjjtigEVJfZu1k/1/agY1Uxl/8Tiox/OGQKYeXwqnQOimuf8/8M8ihmgRE3VMJyhDnwYsZ0acLbdukQch+bn6nX6uzCJ7/xTWRSq3EEONEaJtcZPuOnU3GVXpXPK5Op0YQZ7N7uXB2/FIETTrIMWMmBDf/esKEDarZ8Z49RTp1qt0F9ENOfZBsvjzdcjLlPXfoYtgPjK8I8PhvUYZPnC77VyAwOHhQiARsOsLEoaTH/JZKtD4iALdClEs4sIrl6vV7wakzuSe3X16mGt4tFIjyzsQD2u9mHatyV+KKsFRt5nqZFfLY8Bo200dkbyzvaM8Zpd+6hj6ci1KIcMc9p9jFOZmfHsRYnk5ObDALHrkPMZilRkkDGW+ZuexDAcsjuXhHZ5hD5Nplhr2CjaG89g8mKqyw0iipSnIledmkeOZT7Bctse5ql4qbRYPMu5VyxJZeqwIYuoYyjZnVx7gKyuMv8xvqF6jwfxZm5kFHPTjkISntY38Vd68pCKI3r99KZnXI15tjHbvIoM8GHNpCVgzcrCB6slr/S2l+gdPXlFJ1VXD1XGaaGknr139CEEp7IxHcb5Xc4q0n7wz9zL1WYpzPqleftOE8HhtxCpSFoxV8ggQqapHJ8gW9MORqI0uSSbQl1hO7YWNx3P6fGA=