-
Notifications
You must be signed in to change notification settings - Fork 569
/
.travis.yml
71 lines (59 loc) · 1.58 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dist: bionic
os: linux
language: python
python:
- "3.7"
addons:
apt:
update: true
packages:
- python3-pip
- python3-setuptools
- postgresql-client-10
- postgresql-10-postgis-2.5
- postgresql-10-postgis-2.5-scripts
- postgresql-client-11
- postgresql-11-postgis-2.5
- postgresql-11-postgis-2.5-scripts
# This tests against all the versions of DB supported by Eden
env:
- DB=mysql
- DB=sqlite3
- DB=postgres-11
- DB=postgres-11+postgis
services:
- mysql
- postgresql
# Uncomment below to only test the master branch
# branches:
# only:
# - master
notifications:
email: false
before_install:
- python --version
- pip install -U pip
- chmod +x tests/travis/*
install:
# Essential dependencies
- pip install python-dateutil
- pip install shapely
- pip install lxml
- pip install psycopg2
# Generated dependencies
- python tests/travis/generate_requirements_file.py tests/travis requirements.txt tests/travis/requirements.txt
- pip install -r tests/travis/generated_requirements.txt
# Install and configure web2py
- tests/travis/install_web2py.sh
# Install and configure Eden
- tests/travis/install_eden.sh
before_script:
- cd ../../web2py/
- sudo chown -R ${USER} .
- ./applications/eden/tests/travis/configure_db.sh
#- cat ./applications/eden/models/000_config.py
- 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