forked from sahana/eden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (45 loc) · 1.15 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
55
56
57
dist: xenial
sudo: false
language: python
python:
- "2.7"
- "3.5"
# This tests against all the versions of DB supported by Eden
env:
- DB=mysql
- DB=sqlite3
- DB=postgres-9.6
- DB=postgres-9.6+postgis
virtualenv:
system_site_packages: true
services:
- mysql
- postgresql
# Uncomment below to only test the master branch
# branches:
# only:
# - master
notifications:
email: false
# install web2py
before_install:
- chmod +x tests/travis/*
- sudo tests/travis/install_web2py.sh
# install Eden. This generates generated_requirements.txt which is given as an
# argument to pip
install:
- sudo tests/travis/install_eden.sh
# set up the testing environment
before_script:
- cd ../../web2py/
- sudo chown -R ${USER} .
# configure DB settings based on the env. variable
- ./applications/eden/tests/travis/configure_db.sh
# for debugging in the logs
- cat ./applications/eden/models/000_config.py
# prepop
- python web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py
script:
- python web2py.py -S eden -M -R applications/eden/modules/unit_tests/suite.py
after_script:
- echo "Travis Test Result" $TRAVIS_TEST_RESULT