10 - postgresql-server-dev-9.5
15 - OSM_MEMCACHE_SERVERS="127.0.0.1"
17 - psql -U postgres -c "CREATE DATABASE openstreetmap"
18 - psql -U postgres -c "CREATE EXTENSION btree_gist" openstreetmap
19 - make -C db/functions libpgosm.so
20 - ln db/functions/libpgosm.so /tmp
21 - psql -U postgres -c "CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 AS '/tmp/libpgosm', 'maptile_for_point' LANGUAGE C STRICT" openstreetmap
22 - psql -U postgres -c "CREATE FUNCTION tile_for_point(int4, int4) RETURNS int8 AS '/tmp/libpgosm', 'tile_for_point' LANGUAGE C STRICT" openstreetmap
23 - psql -U postgres -c "CREATE FUNCTION xid_to_int4(xid) RETURNS int4 AS '/tmp/libpgosm', 'xid_to_int4' LANGUAGE C STRICT" openstreetmap
24 - cp config/travis.database.yml config/database.yml
25 - bundle exec rake db:migrate
26 - bundle exec rake i18n:js:export
28 - bundle exec rubocop -f fuubar
29 - bundle exec rake jshint
30 - bundle exec rake test:db