-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
68 lines (56 loc) · 1.48 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
dist: focal
os: linux
language: python
python:
- "3.8"
addons:
apt:
update: true
packages:
- python3-pip
- python3-setuptools
- postgresql-client-12
- postgresql-12-postgis-3
- postgresql-12-postgis-3-scripts
# This tests against all the versions of DB supported by Eden
env:
- DB=mysql
- DB=sqlite3
- DB=postgres-12+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
- pip install requests
# 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