mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 04:48:49 +01:00
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:
parent
108373f938
commit
d7d7510c8d
1 changed files with 15 additions and 16 deletions
31
.travis.yml
31
.travis.yml
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue