Update the travis configuration

Makes use of Travis' docker services, installing newer versions of both
docker and docker-compose.

This necessarily removes multiple Ruby version support since that's now
being controlled by the docker image we're using for builds.
This commit is contained in:
Matt Rogers 2018-05-14 18:49:51 -05:00
parent 108373f938
commit d7d7510c8d
No known key found for this signature in database
GPG key ID: 605D017C07EB4316

View file

@ -1,22 +1,21 @@
language: ruby
sudo: false
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
addons:
firefox: 45.8.0esr
sudo: true
services:
- docker
env:
- DATABASE_URL=mysql2://localhost/tracks_test
- DATABASE_URL=sqlite3:db/test.sqlite3
- DATABASE_URL=mysql2://db/tracks_test
- DOCKER_COMPOSE_VERSION=1.21.0
bundler_args: --without development --jobs=3 --retry=3
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "cp config/site.yml.tmpl config/site.yml"
script: "if [[ $DATABASE_URL == mysql* ]]; then bundle exec rake ci:full; else bundle exec rake ci:lite; fi"
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod -x docker-compose
- sudo mv docker-compose /usr/local/bin
script: "docker --version ; bundle exec rake ci:lite"
addons:
apt:
packages:
- docker-ce
notifications:
email: false
irc: