/
.travis.yml
44 lines (44 loc) · 981 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: ruby
env:
- DB=mysql
rvm:
- 2.3.1
- rbx-3.58
bundler_args: "--without production --binstubs --full-index"
before_script:
- mysql -u root -e 'create database myl_test;'
before_install:
- gem update --system
- gem --version
- command -v brew && brew install mysql && mysql.server start || echo "no brew"
after_install:
- bundle-audit update
- bundle-audit
services:
- redis-server
- mysql
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rspec spec/
cache:
bundler: true
apt: true
directories:
- vendor/assets
- vendor/bundle
- vendor/cache
os:
- linux
- osx
sudo: required
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
notifications:
slack:
secure: x9EVEUQZ0o0Hc4Pxe8icBeNLuDHPPrBvcVnAUzR4d1ReztbsMeimJhPSZCQJ17wCq2+Z5y38lXdOrcSyHxzjEQkAI/PZpAcWzGVvaoL9e42vM56PsDNxKX8a80OhOD0hqFOErYNAR6gQqqEeuQjO+uPNPDRFL1IzcLRNA6abi+U=