forked from hitobito/hitobito_youth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.07 KB
/
.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
language: ruby
cache: bundler
branches:
only:
- master
- stable
env:
global:
- HEADLESS=true
- RAILS_DB_ADAPTER=mysql2
- RAILS_DB_NAME=hitobito_test
- RAILS_ENV=development
rvm:
- 2.2.3
- 2.3.1
- 2.4.0
- 2.5.1
install:
- unset BUNDLE_GEMFILE # we bundle in different directories
- export HITOBITO_BRANCH=$([[ $TRAVIS_BRANCH = 'stable' ]] && echo 'stable' || echo 'master')
- cd .. && git clone https://github.com/hitobito/hitobito.git hitobito
- cd hitobito && git checkout -f $HITOBITO_BRANCH
- export HITOBITO_CORE_DIR=$PWD
- cp -v Wagonfile.ci Wagonfile
- rvm use $TRAVIS_RUBY_VERSION --fuzzy
- gem install bundler --version 1.9.10
- bundle install --path vendor/bundle
- for d in ../hitobito_*; do cd $d && cp -v $HITOBITO_CORE_DIR/Gemfile.lock ./ && rvm use $TRAVIS_RUBY_VERSION --fuzzy && bundle install --path vendor/bundle; done
- cd $HITOBITO_CORE_DIR && rvm use $TRAVIS_RUBY_VERSION --fuzzy
script:
- bundle exec rake db:create ci:wagon --trace
matrix:
allow_failures:
- rvm: 2.3.1
- rvm: 2.4.0
- rvm: 2.5.1