-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.19 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
37
38
39
40
41
42
43
language: ruby
cache: bundler
sudo: false
bundler_args: --without development production
before_install:
- mkdir -p tmp
- find spec -maxdepth 1 -type d | grep spec/ > tmp/curr_spec_dirs.txt
- if grep -Fxvc -f spec/known_dirs.txt tmp/curr_spec_dirs.txt; then echo 'Detected unkown Spec directories, check the spec/known_dirs.txt!'; exit 1; fi
- 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
before_script: &before_script
- psql -c 'create database travis_ci_test;' -U postgres
- bundle exec rake configure:travis db:setup
- echo Running script - bundle exec rspec $SPECS
matrix:
fast_finish: true
include:
- rvm: 2.3.0
env:
- SPECS=spec/controllers/api/v1/[a-m]*.rb
- rvm: 2.3.0
env:
- SPECS=spec/controllers/api/v1/[n-s]*.rb
- rvm: 2.3.0
env:
- SPECS=spec/controllers/api/v1/[t-z]*.rb
- rvm: 2.3.0
env:
- SPECS="spec/controllers/**.rb spec/controllers/api/*.rb spec/models spec/operations"
- rvm: 2.3.0
env:
- SPECS="spec/lib spec/workers spec/serializers spec/services spec/requests spec/middleware spec/mailers"
services:
- postgresql
addons:
postgresql: "9.4"
script: "bundle exec rspec $SPECS"