forked from hitobito/hitobito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 783 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
language: ruby
cache:
bundler: true
yarn: true
addons:
firefox: 60.0
services:
- memcached
env:
global:
- HEADLESS=true
- RAILS_DB_ADAPTER=mysql2
- RAILS_TEST_DB_NAME=hitobito_test
rvm:
- 2.5.5
before_install:
- sudo apt-get -qq update
- sudo apt-get install sphinxsearch
- echo '[mysqld]' | sudo tee /etc/mysql/conf.d/sort_buffer_size.cnf > /dev/null
- echo 'sort_buffer_size = 2M' | sudo tee -a /etc/mysql/conf.d/sort_buffer_size.cnf > /dev/null
- sudo service mysql restart
- mysql -e 'CREATE DATABASE hitobito_test;'
install:
- bundle install --path vendor/bundle
- nvm install v15.14.0
- node -v
- npm i -g yarn
- yarn install
- bundle exec rake webpacker:compile
script:
- bundle exec rake db:create ci --trace