]> git.openstreetmap.org Git - rails.git/blob - .travis.yml
Silence puma startup messages when running tests
[rails.git] / .travis.yml
1 sudo: false
2 language: ruby
3 rvm:
4   - 2.3.1
5 cache: bundler
6 addons:
7   postgresql: 9.5
8   apt:
9     packages:
10       - postgresql-server-dev-9.5
11 services:
12   - memcached
13 env:
14   global:
15     - OSM_MEMCACHE_SERVERS="127.0.0.1"
16 before_script:
17   - cp config/example.application.yml config/application.yml
18   - ruby -C lib/quad_tile extconf.rb
19   - make -C lib/quad_tile
20   - psql -U postgres -c "CREATE DATABASE openstreetmap"
21   - psql -U postgres -c "CREATE EXTENSION btree_gist" openstreetmap
22   - make -C db/functions libpgosm.so
23   - ln db/functions/libpgosm.so /tmp
24   - psql -U postgres -c "CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 AS '/tmp/libpgosm', 'maptile_for_point' LANGUAGE C STRICT" openstreetmap
25   - psql -U postgres -c "CREATE FUNCTION tile_for_point(int4, int4) RETURNS int8 AS '/tmp/libpgosm', 'tile_for_point' LANGUAGE C STRICT" openstreetmap
26   - psql -U postgres -c "CREATE FUNCTION xid_to_int4(xid) RETURNS int4 AS '/tmp/libpgosm', 'xid_to_int4' LANGUAGE C STRICT" openstreetmap
27   - cp config/travis.database.yml config/database.yml
28   - bundle exec rake db:migrate
29 script:
30   - bundle exec rubocop -f fuubar
31   - bundle exec rake jshint
32   - bundle exec rake test:db