osem-fcy/.travis.yml
Ana María Martínez Gómez 9f8836732d Update mariadb to 10.2 to solve Travis failures
Our test suite is failing in Travis as it complains about not finding
`libmysqlclient-dev` which is needed for mysql2. But installing
`libmysqlclient-dev` conflicts with MariaDB 10.1. So I updated MariaDB
to 10.2 and mysql to the last version as the old one is not compatible
with MariaDB 10.2. The missed `libmysqlclient-dev` is not needed any
more.
2017-09-12 13:29:16 +02:00

32 lines
707 B
YAML

sudo: required
dist: trusty
language: ruby
cache: bundler
rvm:
- 2.4.0
before_install:
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
- "echo `phantomjs -v`"
addons:
mariadb: '10.2'
notifications:
email:
on_success: change
on_failure: change
irc:
channels:
- "chat.freenode.net#osem"
on_success: change
on_failure: change
before_script:
- cp config/database.yml.travis config/database.yml
- cp config/secrets.yml.example config/secrets.yml
- mysql -u root -e 'create database osem_test;'
- RAILS_ENV=test bundle exec rake db:migrate --trace
script:
- "./travis_script.sh $TEST_SUITE"
env:
- TEST_SUITE=rspec
- TEST_SUITE=linters
matrix:
fast_finish: true