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