jcraigk/phishin

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
dist: focal
language: ruby
rvm:
  - 3.3.2
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