forked from hitobito/hitobito_pbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.1 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
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
- cd .. && git clone https://github.com/hitobito/hitobito_youth.git hitobito_youth
- cd hitobito_youth && git checkout -f master
- cd .. && git clone https://github.com/hitobito/hitobito.git hitobito
- cd hitobito && git checkout -f master
- export HITOBITO_CORE_DIR=$PWD
- cp -v Wagonfile.ci Wagonfile
- rvm use $TRAVIS_RUBY_VERSION --fuzzy
- gem install bundler --version 1.17.3
- 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'
- nvm install node
- node -v
- npm i -g yarn
- yarn install
- bundle exec rails webpacker:compile
script:
- bundle exec rake db:create ci:wagon --trace