forked from mysociety/alaveteli
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
33 lines (32 loc) · 949 Bytes
/
.drone.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
image: registry.pinpoint.io/ruby-node-ci:latest
envs:
- TERM=xterm
- DATABASE_URL=postgres://localhost/fyi_test
script:
- apt-get install -y libicu-dev libmagic-dev libmagickwand-dev libmagickcore-dev libpq-dev libxml2-dev libxslt1-dev links catdoc elinks links sqlite3 lockfile-progs mutt pdftk poppler-utils tnef unrtf uuid-dev wkhtmltopdf wv xapian-tools
- cp script/docker/database.yml config/database.yml
- cp script/docker/general.yml config/general.yml
- bundle install --path /tmp/bundle --clean
- rm config/brakeman.yml
- bundle exec rake db:setup
- gem install brakeman rubocop
- brakeman
- # rubocop
- bundle exec rspec
services:
- postgres
cache:
- /tmp/bundle
notify:
slack:
webhook_url: $$WEBHOOK_URL
channel: '#development'
username: 'drone'
on_started: true
on_success: true
on_failure: true
deploy:
bash:
command: make
when:
branch: develop