Update bundle
[rails.git] / .travis.yml
1 dist: xenial
2 language: ruby
3 rvm:
4   - 2.5.3
5 cache:
6   - bundler
7 addons:
8   postgresql: 9.5
9   apt:
10     packages:
11       - libarchive-dev
12 services:
13   - memcached
14 env:
15   global:
16     - OSM_MEMCACHE_SERVERS="127.0.0.1"
17 before_script:
18   - sed -e 's/ IMMUTABLE / /' -e "/^--/d" db/structure.sql > db/structure.expected
19   - psql -U postgres -c "CREATE DATABASE openstreetmap"
20   - psql -U postgres -c "CREATE EXTENSION btree_gist" openstreetmap
21   - psql -U postgres -f db/functions/functions.sql openstreetmap
22   - cp config/travis.database.yml config/database.yml
23   - cp config/example.storage.yml config/storage.yml
24   - touch config/settings.local.yml
25   - bundle exec rake db:migrate
26   - bundle exec rake i18n:js:export
27   - bundle exec rake yarn:install
28 script:
29   - bundle exec rubocop -f fuubar
30   - bundle exec rake eslint
31   - bundle exec erblint .
32   - bundle exec rake db:structure:dump
33   - sed -e "/idle_in_transaction_session_timeout/d" -e 's/ IMMUTABLE / /' -e "/^--/d" db/structure.sql > db/structure.actual
34   - diff -uw db/structure.expected db/structure.actual
35   - bundle exec rake test:db