-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
61 lines (49 loc) · 1.49 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
language: python
python:
- 3.5
services:
- postgresql
addons:
postgresql: "9.5"
apt:
packages:
- postgresql-9.5-postgis-2.3
cache:
- $HOME/.cache/pip
- $HOME/public
git:
depth: 3
env:
global:
- PGDATABASE=postgres
- MONTH=2017-05
- INTERVAL="2 DAYS"
matrix:
- TASK=routeratio
- TASK=spacing
- TASK=evt
- TASK="prepare cewt"
- TASK=otp
- TASK=otd
- TASK="prepare bunching"
- TASK=service
- TASK=speed
- TASK="prepare wtp"
before_install:
- psql --version
- git clone --depth 3 https://github.com/fitnr/gtfs-sql-importer.git
- git clone --depth 3 https://github.com/Bus-Data-NYC/inferno.git
# gtfs-sql-importer wants a zip
- zip -1jr gtfs-sql-importer/gtfs.zip data/test/*.txt
install:
- psql -f inferno/sql/calls.sql
- make init drop_constraints drop_indices load add_indices GTFS=gtfs.zip -C gtfs-sql-importer
- psql -c "alter table gtfs.shape_geoms alter column feed_index set default 1"
- psql -c "alter table inferno.calls alter column feed_index set default 1"
- psql -c "\copy calls (trip_id, deviation, call_time, stop_id, vehicle_id, direction_id, source, date, run_index) from 'data/test/calls.txt' csv header"
- psql -c "\copy gtfs.shape_geoms (shape_id, length, the_geom) from 'data/test/shape_geoms.txt' csv header"
- make -e init
before_script:
- psql $PG_DATABASE -c "select postgis_full_version()"
script: make -e $TASK
after_script: psql $PG_DATABASE -c "select * from stat_${TASK##* } limit 25"