AMD64
Ruby: 2.4.2
Git
public-accountability/littlesis-rails:.travis.yml@4fd6aae
os: linux
dist: bionic
env:
global:
- RAILS_ENV=test
- COVERAGE=true
jobs:
include:
- language: ruby
rvm: 2.7.1
cache:
bundler: true
addons:
mariadb: '10.5'
services:
- mysql
before_install:
- sudo apt-get -qq update
- sudo apt-get install -o Dpkg::Options::="--force-overwrite" -y mariadb-client libmariadb-dev
- sudo mysql_upgrade
- curl -L "https://github.com/manticoresoftware/manticoresearch/releases/download/3.4.2/manticore_3.4.2-200410-69033058-release.bionic_amd64-bin.deb" > manticore.deb
- sudo dpkg -i manticore.deb
- curl -L "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" > chrome.deb
- sudo dpkg -i chrome.deb
- curl -L "https://chromedriver.storage.googleapis.com/85.0.4183.87/chromedriver_linux64.zip" > chromedriver.zip
- unzip chromedriver.zip
- sudo mv chromedriver /usr/bin/chromedriver
- sudo chown root:root /usr/bin/chromedriver
- sudo chmod +x /usr/bin/chromedriver
- nvm install node
- node -v
- npm -g install yarn
- gem install bundler
- yarn install
- google-chrome --version
- chromedriver --version
before_script:
- cp config/database.travis.yml config/database.yml
- cp config/lilsis.yml.sample config/lilsis.yml
- cp config/secrets.yml.sample config/secrets.yml
- mkdir -p tmp tmp/small/ tmp/profile tmp/large/ tmp/original/
- sudo mysql -e 'CREATE DATABASE littlesis_test;'
- sudo mysql -e "GRANT all privileges on littlesis_test.* to 'littlesis'@'%' identified by 'littlesis';flush privileges;"
- bundle exec rake db:structure:load
- bundle exec rake db:seed
- bundle exec rake assets:precompile
script:
- bundle exec rspec
after_success:
- bash <(curl -s https://codecov.io/bash)
- language: node_js
node_js: lts/*
cache: yarn
script:
- yarn test
Build Config
{
"rvm": "2.4.2",
"sudo": false,
"cache": "bundler",
"script": "bundle exec rspec -fs --color --order rand spec",
"language": "ruby",
"notifications": {
"webhooks": "http://requestb.in/14h19sy1"
}
}