forked from deis/deis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 925 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
# .travis.yml
# Configuration file for Travis-CI.org hosted testing
language: python
python:
- "2.7"
services:
- postgresql
env:
- FLEETCTL_TUNNEL=foo
before_install:
- sudo apt-get install -qq libpq-dev
install:
- pip install -r controller/requirements.txt
- pip install -r controller/dev_requirements.txt coveralls
before_script:
- "psql -c 'create database deis_testing;' -U postgres"
- |
cat > controller/deis/local_settings.py <<EOF
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'deis_testing',
'USER': 'postgres',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
SECRET_KEY = 'TotallyFake-SECRET_KEY-ForTravisCI'
EOF
script:
- make -C controller flake8
- make -C controller coverage
- make -C docs
after_success:
- cd controller && coveralls