-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
54 lines (51 loc) · 1.19 KB
/
wercker.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
53
54
ruby: 2.4.1
box: redrick/ruby_base_image:latest
services:
- postgres
- redis
build:
steps:
- install-packages:
packages: redis-server redis-tools
- script:
name: start redis
code: |
redis-server --daemonize yes
redis-cli ping
- bundle-install
- rails-database-yml
- script:
name: echo lib information
code: |
echo "ruby version $(ruby --version) running!"
echo "from location $(which ruby)"
echo -p "gem list: $(gem list)"
- script:
name: Set up db
code: bundle exec rake db:schema:load RAILS_ENV=test
- script:
name: run rubocop
code: bundle exec rubocop
- script:
name: run brakeman
code: |
gem install brakeman
brakeman
- script:
name: run bundle audit
code: |
gem install bundler-audit
bundle-audit update
bundle-audit check
- script:
name: run rubycritic
code: |
bundle exec rubycritic -f console
- script:
name: rspec
code: bundle exec rspec
# after-steps:
# - slack-notifier:
# url: $SLACK_URL
# channel: build_status
# username: 'Wercker Dude'