-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
43 lines (43 loc) · 932 Bytes
/
.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
dist: focal
language: ruby
rvm:
- 3.3.3
cache: bundler
notifications:
email: false
services:
- xvfb
addons:
postgresql: '12'
chrome: stable
apt:
update: true
packages:
- postgresql-12
- google-chrome-stable
env:
global:
- PGUSER=postgres
- PGPORT=5432
- PGHOST=localhost
before_install:
- sudo apt-get -y install libsndfile-dev
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
- sleep 1
- postgres --version
- psql -c 'create database phishin_test;' -U postgres
- gem update --system --no-document
- gem install bundler --no-document
install:
- bundle install
- yarn install
script:
- bundle exec rubocop
- bundle exec rails assets:precompile
- bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
only:
- main