]> git.openstreetmap.org Git - rails.git/blob - .travis.yml
Add Coveralls support
[rails.git] / .travis.yml
1 language: ruby
2 rvm:
3   - 1.9.3
4 addons:
5   postgresql: 9.1
6 services:
7   - memcached
8 env:
9   global:
10     - OSM_MEMCACHE_SERVERS="127.0.0.1"
11 before_script:
12   - sudo apt-get update
13   - sudo apt-get install postgresql-server-dev-9.1
14   - psql -U postgres -c "CREATE DATABASE openstreetmap"
15   - psql -U postgres -c "CREATE EXTENSION btree_gist" openstreetmap
16   - make -C db/functions libpgosm.so
17   - psql -U postgres -c "CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 AS '${PWD}/db/functions/libpgosm', 'maptile_for_point' LANGUAGE C STRICT" openstreetmap
18   - psql -U postgres -c "CREATE FUNCTION tile_for_point(int4, int4) RETURNS int8 AS '${PWD}/db/functions/libpgosm', 'tile_for_point' LANGUAGE C STRICT" openstreetmap
19   - psql -U postgres -c "CREATE FUNCTION xid_to_int4(xid) RETURNS int4 AS '${PWD}/db/functions/libpgosm', 'xid_to_int4' LANGUAGE C STRICT" openstreetmap
20   - cp config/travis.database.yml config/database.yml
21   - bundle exec rake db:migrate
22 script:
23   - bundle exec rubocop -f fuubar
24   - bundle exec rake jshint
25   - bundle exec rake test