forked from hitobito/hitobito_youth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 991 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
language: ruby
cache: bundler
dist: xenial
services:
- mysql
env:
global:
- HEADLESS=true
- RAILS_DB_ADAPTER=mysql2
- RAILS_DB_NAME=hitobito_test
rvm:
- 2.5.5
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
- mysql -e 'CREATE DATABASE hitobito_test'
script:
- bundle exec rake db:create ci:wagon --trace