/
.travis.yml
52 lines (52 loc) · 1.4 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
49
50
51
52
sudo: false
language: ruby
cache:
directories:
- /tmp/vendor/bundle
- node_modules
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
before_install: gem install bundler -v 1.17.3
install:
- bin/use
- bundle install --path /tmp/vendor/bundle
- bin/bundle install --path /tmp/vendor/bundle
script:
- export COVERALLS_PARALLEL=true
- bin/bundle exec rspec --format documentation --order rand
jobs:
include:
- rvm: 2.5.7
gemfile: gemfiles/rails_5.2_ruby_2.5.7.gemfile
- rvm: 2.3.8
gemfile: gemfiles/rails_5.2_ruby_2.3.8.gemfile
- rvm: 2.5.7
gemfile: gemfiles/rails_5.0_ruby_2.5.7.gemfile
- rvm: 2.3.8
gemfile: gemfiles/rails_5.0_ruby_2.3.8.gemfile
- rvm: 2.5.7
gemfile: gemfiles/middleman_4.2_ruby_2.5.7.gemfile
- stage: coverage
script:
- bundle exec rake coverage
- bundle exec rake coverage:coveralls
# Keep in mind to overwrite these here
rvm: 2.5.7
gemfile: gemfiles/rails_5.2_ruby_2.5.7.gemfile
- stage: lint
before_script:
- npm install
script:
- bundle exec danger
- bundle exec rubocop
- bundle exec erblint '*/app/views/**/*.erb'
- npm run lint
# Keep in mind to overwrite these here
rvm: 2.5.7
gemfile: gemfiles/rails_5.2_ruby_2.5.7.gemfile
notifications:
webhooks: https://coveralls.io/webhook