-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
50 lines (41 loc) · 2.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
dist: xenial
language: python
python:
- "3.7"
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-10-postgis-2.4
before_install:
# annoying tzdata
- /bin/bash -c "DEBIAN_FRONTEND=noninteractive sudo apt-get install -y tzdata"
- sudo ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
- sudo dpkg-reconfigure --frontend noninteractive tzdata
# symlink raster2pgsql
- sudo apt-get update -qq
- sudo apt-get install -y postgis
env:
global:
# Flask env variables
- TESTING=true
- FLASK_APP="$TRAVIS_BUILD_DIR/manage"
- OES_LOGLEVEL="DEBUG"
- APP_SETTINGS="openelevationservice.server.config.TestingConfig"
# CGIAR credentials, encrypted
#- secure: GfAv9pnb9FRodSO4FMnQS8o7fQ9nLUl56m50EkrOHumxxMDMQfmquT98cuaeiRLVq9XmQhz4P2U1kHqKBUuAHTF1s+/V6RC3KQ6WxOS3xlmpAg4NMQF7MwTLanUtXOVkIozaeuDZiXQqjo+wTC92FYvGA17KBmTK1yfsEn6HGcfHw5ax2gJ+kmFnSNwN0VzrGOzw0zOVSaM8pAObuEYr1mgqNfo0wnX9O7SCifSILJGxTx1FwZqQWGsxeIBjkQkNlhLmChCd1Qm0k+ioiZOuIOeEst0+owZ/Wla4pJellObJjCxZ1sMAvgaFvOaXgR8iscw8zsUbRO2cePuaRoHFLqOKBTSokS7KibY2LDTuI7m5aVblPWp49MjhjiHaok53VN0IXfW5yHZQW7LtHyMHopTVT7L5zn2RKZNfnREYlkKZcYb04WXxUVAl3LwRAkDe1vxrkb+GzqgY4n438joFEPUUT+oR3c+xMIP+eZXEGO0HnOmpkd29UFT/ZizXt02MfSRHgmieL3POi0Wif+0jGDlxfTcvom4gikv3vyldanVlO/PySop+R0mFczUD5IMZIacEu/smkp/9XNO3gmBJ0T0LX1+4BwShbw75HERiVArlY4f6kbnshx065ayCzFqvUd0fYtT7VniIgyL2otZdcEu+NL3G/MmNQ+mGhFZBZs8=
#- secure: f4/sARD0iEUG8e5W3/D7ILk14Vf2w8OOJoPFDpOGiRBWdkCxf22mMjrErYWfLitW/rdhNUVXF3G2DP0WgxM6aTvNUR9aA4YoUrwbHy0ZF/vL70duayOH+wvHY1tDSvWJS3zfruaS4vXh27Eky1LZ1P1e5ke7t13TXmbyH6JqofYzIGAsttX2X2Kl0bBmO7LMlbKf8A7WjysSus+IkoDFMaGneUozDJvscmtD7XMuzjMcd5RxMHRiHNsWtlb+OjXVolSuJmF6T0ubD8un5X6kYD1IjWPUY8GLpegCe9zo2eAbZAYhocx0Sz0zDMcwSn1wtzSN83KYjLoRZjuKCBE36mxpRCHNmTzFsco6+MAjRMCZmNABRrufstfA6N/4mbpc6UJu2kAYyjUiufVt04sPInCYU7oR953whM1P1EfAFG2HqKJ5NWqiUOUBxxUr0IG2VACqmdUFzerKyYRhsASfwMXT+ghw9gxxso5SPFDt6v6vjqeA1sRX5rNSsZiWoT2GZEet38fIG603N9L/9b/q9PpbTZTAWB5HD8P3BUBimdCbApXPwATuqln+KXDr6CC0t0Q1t8r4Gab9RFfQ6xrqzgyd86YW/TcN8V0R8wXt9/jtb3W4KQYWMRyQm+y5Pp7qNc23MhXK9MxX9iqL1mhHGA2PoQTVjT5597S/qVVuptY=
# - PGPORT=5432
# database creation
before_script:
- sudo -u postgres psql -c "CREATE USER gis WITH PASSWORD 'gis';"
- sudo -u postgres psql -c "ALTER USER gis WITH SUPERUSER;"
- sudo -u postgres psql -c "CREATE DATABASE gis;"
- sudo -u postgres psql -c "CREATE EXTENSION postgis;" -d gis
- mv openelevationservice/server/ops_settings.sample.yml openelevationservice/server/ops_settings.yml
install: pip install -r requirements.txt
script: nosetests -v