-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (43 loc) · 1.83 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
sudo: required
language: ruby
cache: bundler
rvm:
- 2.4.4
services:
- postgresql
notifications:
slack: patagonia-mara:xaEjhNnxt9qqXGyyqyGXUfDF
before_install:
- cp config/database.yml.example config/database.yml
- gem update --system
install:
- bin/bundle install --path vendor/bundle
before_script:
- psql -c 'create database mara_test;' -U postgres
- bin/rake db:migrate RAILS_ENV=test
jobs:
include:
- stage: rspec
script: bin/rake
- stage: brakeman
script: bundle exec brakeman
- stage: bundler-audit
script: bundle exec bundler-audit
# - stage: rubocop
# script:
# - var="$(bundle exec pronto run -r rubocop -c origin/master)"
# - echo $var
# - if [[ -z $var ]]; then exit 0; else exit 1; fi
# - stage: reek
# script:
# - var="$(bundle exec pronto run -r reek -c origin/master)"
# - echo $var
# - if [[ -z $var ]]; then exit 0; else exit 1; fi
# - stage: fasterer
# script:
# - var="$(bundle exec pronto run -r fasterer -c origin/master)"
# - echo $var
# - if [[ -z $var ]]; then exit 0; else exit 1; fi
env:
matrix:
secure: KS/V8JGogmY2uk+veO1+agJnpBSvKSQQAieMda7wTD2GhVLEm44IvPat1JLFx4JCnxHRd+gWkbeP00mp7qsu5wy+omrHuRaSqqdfOaBlwPDf8ZYAI6AYwkz8xndOJo77pFLpq6WpxZ3fIcHqGPCMpaI4KdT3UljZ2yZQ/9gGs6EZuRgawgHkasnhqugfHG0WIBOtt14qqSoWsKd+4CHoy5nsG0bvHfYA1PzesfRW1tGWlsKd3z64MVOtJZiv+esk+hN9b8jeG4B5rJZerrUBm105qr0kiV53O9bQJA7eK6CE8eyR/O6Xwip8MCBkFX8lNfdRpSQAzCdYp9txrmWMIdxlzFXzkXDbnVqG8SDpu9LKFfEDPgYwr/sV7/BL5NfmKuAgBzSg6zPMLp0VPKqoSzEe5azaY9sgPkgMeWKt7oggJmU3RHWKtS8LkfOLczlUI0FHOZ5dyxcJjUj2R22Qg8HCBojyCcQjvraw5i8GdGrsStVFKAz2rsZ3Vu76WSTYqDXI9MnMIEBetXvvXjJMK4K/HdFk5hYzl6jXV9F6ZTATyzqxxA/jharoAWIuKWe9EZKPVhr0rJZTcHJw35U1Wv3HbUPnIn/GmPRwtFkpBYxWYi0ffl9RVOYNnIHP64u0E67ArJCckm+pARBMqiD338dSXN7xFL1RcUTkny/s5Mk=