]> git.openstreetmap.org Git - rails.git/blob - .travis.yml
travis: update structure.sql
[rails.git] / .travis.yml
1 dist: bionic
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       - libgd-dev
13       - libffi-dev
14       - libbz2-dev
15 services:
16   - memcached
17 env:
18   global:
19     - OSM_MEMCACHE_SERVERS="127.0.0.1"
20 before_script:
21   - sed -e 's/ IMMUTABLE / /' -e "/^--/d" db/structure.sql > db/structure.expected
22   - psql -U postgres -c "CREATE DATABASE openstreetmap"
23   - psql -U postgres -c "CREATE EXTENSION btree_gist" openstreetmap
24   - psql -U postgres -f db/functions/functions.sql openstreetmap
25   - cp config/travis.database.yml config/database.yml
26   - cp config/example.storage.yml config/storage.yml
27   - touch config/settings.local.yml
28   - bundle exec rake db:migrate
29   - bundle exec rake i18n:js:export
30   - bundle exec rake yarn:install
31 script:
32   - bundle exec rubocop -f fuubar
33   - bundle exec rake eslint
34   - bundle exec erblint .
35   - bundle exec rake db:structure:dump
36   - sed -e "/idle_in_transaction_session_timeout/d" -e 's/ IMMUTABLE / /' -e "/^--/d" db/structure.sql > db/structure.actual
37   - diff -uw db/structure.expected db/structure.actual
38   - bundle exec rake test:db