-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (24 loc) · 804 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
language: ruby
rvm:
# SLES15
- 2.5.0
cache:
- bundler
jobs:
include:
- stage: danger
if: fork = false
script: 'bundle exec danger'
- stage: tests
script:
- 'bundle exec rails db:migrate RAILS_ENV=test'
- 'bundle exec rake test'
services:
- mysql
before_script:
- sudo mkdir -p /var/lib/rmt
- sudo chown -R travis:travis /var/lib/rmt
- mysql -e 'CREATE DATABASE rmt_test;'
- mysql -e $'GRANT ALL PRIVILEGES ON `rmt\_%` . * TO rmt@localhost identified by \'rmt\';'
- ruby -e "require 'yaml'; puts({'database_test'=>{'host'=>'localhost','username'=>'rmt','password'=>'rmt','database'=>'rmt_test','adapter'=>'mysql2','encoding'=>'utf8','timeout'=>5000,'pool'=>5}}.to_yaml)" > config/rmt.local.yml
before_install: gem install bundler -v 1.17