-
Notifications
You must be signed in to change notification settings - Fork 41
/
.postgresql.travis.yml
46 lines (42 loc) · 1.38 KB
/
.postgresql.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
dist: xenial
addons:
apt:
sources:
- sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main'
key_url: 'http://dl.yarnpkg.com/debian/pubkey.gpg'
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
packages:
- postgresql-11
- chromium-chromedriver
- google-chrome-stable
- yarn
- redis-server
postgresql: '11'
_test_gem_pg: &_test_gem_pg
before_install:
- echo 'installing postgresql'
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql stop
- sudo service postgresql start 11
- postgres --version
- sudo rm -f /usr/local/bin/yarn
- nvm install 10
- rvm install 2.6.3 # was 2.5.1
- gem install bundler
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
- echo 'install completed'
before_script:
- psql -c "create database ${DB};" -U postgres
- cd ruby/$COMPONENT
- bundle install --jobs=3 --retry=3
- google-chrome --version
- which google-chrome
- yarn install
script:
- DRIVER=travis bundle exec rspec spec/batch1/column_types/column_type_spec.rb:121
jobs:
include:
- <<: *_test_gem_pg
env: COMPONENT=hyper-model DB=hyper_mesh_test_db