-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
35 lines (35 loc) · 1.29 KB
/
.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
language: ruby
rvm:
- 2.6.6
dist: focal
cache:
directories:
- /home/travis/minerva/
- /home/travis/.rvm/
addons:
postgresql: 13
services:
- postgresql
before_install:
- PATH=$HOME/minerva/bin:$PATH export PATH
- ln -s $HOME/minerva ../minerva
- ruby -e 'require "openssl"; system(sprintf("lsof -p %d", Process.pid))'
- ./travis-install-openssl
- LD_PRELOAD=/home/travis/minerva/lib/libssl.so.1.1:/home/travis/minerva/lib/libcrypto.so.1.1 ruby -e 'require "openssl"; system(sprintf("lsof -p %d", Process.pid))'
- bundle config set deployment 'true'
install:
- true
before_script:
- psql -c 'create database fountain_ci_test;' -U postgres
- cp config/database.yml.travis config/database.yml
- bundle install --jobs=3 --retry=3
- ls -l /home/travis/minerva/lib/libssl.so.1.1 /home/travis/minerva/lib/libcrypto.so.1.1
- LD_PRELOAD=/home/travis/minerva/lib/libssl.so.1.1:/home/travis/minerva/lib/libcrypto.so.1.1 bundle exec ruby -e 'require "openssl"; print OpenSSL::CMS; system(sprintf("lsof -p %d", Process.pid))'
- export LD_PRELOAD=/home/travis/minerva/lib/libssl.so.1.1:/home/travis/minerva/lib/libcrypto.so.1.1
- env
- bundle exec rake db:create
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake db:schema:load
- lsof -h
script:
- bundle exec rake spec