-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
43 lines (36 loc) · 1.05 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
sudo: required
language: python
cache:
- pip
python:
- 2.7
services:
- postgresql
env:
global:
# These env vars are available to every build
- PYTHONPATH=$PYTHONPATH:../refinery:../refinery/config
- DJANGO_SETTINGS_MODULE=config.settings.prod
matrix:
- REFINERY_BRANCH=develop
- REFINERY_BRANCH=master
install:
- git clone https://github.com/refinery-platform/refinery-platform.git
- pushd refinery-platform
- git checkout $REFINERY_BRANCH
- pip install --upgrade pip
- pip install -r requirements.txt --quiet
# Vagrant is not used on travis: This user is just for the database.
- createuser --createdb --no-superuser --no-createrole vagrant
- createdb -O vagrant refinery
- pushd refinery
# See http://www.stuartellis.eu/articles/erb/#running-erb-from-the-command-line
- erb config/config.json.erb > config/config.json
- python manage.py migrate --noinput
- popd && popd
script:
- echo $REFINERY_BRANCH
- python ci_tests.py
notifications:
slack: refinery-platform:YD1N3ifQ4jaiIqaiGmmwF7Tq
on_success: never