forked from BigBrotherBot/big-brother-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.3 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
# TravisCI config file. See http://travis-ci.org
language: python
python:
- 2.7
env:
matrix:
# jobs environment variables
- TEST=core
- TEST=plugins
- TEST=build
global:
# global environment variables
- MYSQL_TEST_HOST=127.0.0.1
- MYSQL_TEST_USER=travis MYSQL_TEST_PASSWORD=''
- MYSQL_TEST_DB=b3_test
- POSTGRESQL_TEST_HOST=127.0.0.1
- POSTGRESQL_TEST_USER=postgres
- POSTGRESQL_TEST_PASSWORD=''
- POSTGRESQL_TEST_DB=b3_test
addons:
# select postgresql version
postgresql: "9.3"
cache:
# cache pip installs across jobs
- pip
install:
# install requirements
- ./scripts/install-deps-${TEST}.sh
before_script:
# create postgresql database
- psql -c "CREATE DATABASE b3_test WITH OWNER = postgres ENCODING = 'UTF8';" -U postgres
script:
# execute current job
- ./scripts/start-tests-${TEST}.sh
after_success:
# report tests coverage if we are running tests
- if [ "${TEST}" != "build" ]; then pip install coveralls && coveralls; fi
notifications:
# send notifications to gitter
webhooks:
urls:
- https://webhooks.gitter.im/e/489374443a557d989111
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # default: never