forked from zendesk/samson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 890 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
language: ruby
cache:
bundler: true
directories:
- tmp/rubocop_cache
- node_modules
sudo: false
services:
- memcached
branches:
only: master
env:
matrix:
- TASK='test:prepare_js test:js'
- TASK='assets:precompile'
- TASK='brakeman'
- TASK='rubocop'
- TASK='flay'
- BUNDLE_WITHOUT=postgres:sqlite DATABASE_URL=mysql2://[email protected]/samson_test USE_UTF8MB4=1 TASK='db:create default'
- BUNDLE_WITHOUT=mysql:sqlite DATABASE_URL=postgresql://[email protected]/samson_test TASK='db:create default'
- BUNDLE_WITHOUT=postgres:mysql DATABASE_URL=sqlite3://null$PWD/db/test.sqlite3 TASK='db:create default'
script: bundle exec rake $TASK
before_script:
- mysql -u root -e 'set GLOBAL innodb_large_prefix = true'
- mysql -u root -e 'set GLOBAL innodb_file_per_table = true'
- mysql -u root -e 'set GLOBAL innodb_file_format = "barracuda"'