forked from zooniverse/panoptes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 1.39 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
44
45
46
47
48
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'
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
before_script: &before_script
- psql -c 'create database travis_ci_test;' -U postgres
- scripts/no_focus.sh
- bundle exec rake configure:travis db:setup
- echo Running script - bundle exec rspec $SPECS
matrix:
fast_finish: true
allow_failures:
- rvm: 2.6
include:
- rvm: 2.5
env:
- SPECS=spec/controllers/api/v1/[a-m]*.rb
- rvm: 2.5
env:
- SPECS=spec/controllers/api/v1/[n-s]*.rb
- rvm: 2.5
env:
- SPECS=spec/controllers/api/v1/[t-z]*.rb
- rvm: 2.5
env:
- SPECS="spec/controllers/**.rb spec/controllers/api/*.rb spec/models spec/operations spec/counters spec/routes"
- rvm: 2.5
env:
- SPECS="spec/lib spec/workers spec/serializers spec/services spec/requests spec/middleware spec/mailers spec/policies"
- rvm: 2.6
services:
- postgresql
addons:
postgresql: "9.5"
script: "bundle exec rspec $SPECS"