forked from DARIAEngineering/dcaf_case_management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
29 lines (27 loc) · 1.05 KB
/
circle.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
machine:
ruby:
version: 2.4.1
pre:
- sudo apt-get install libfontconfig
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
services:
- docker
deployment:
staging:
branch: master
commands:
- bundle exec rake assets:clobber assets:precompile
- git push [email protected]:dcaf-cmapp-staging.git $CIRCLE_SHA1:master
- docker build -t colinxfleming/dcaf_case_management . && docker login -e "$DOCKEREMAIL" -u "$DOCKERLOGIN" -p "$DOCKERPASS" && docker push colinxfleming/dcaf_case_management
test:
override:
# Currently rails test is blowing up on CI, so back to rake test for now
- bundle exec rake test TESTOPTS="--ci-dir=$CIRCLE_TEST_REPORTS":
# parallel: true
files:
- test/**/*_test.rb
post:
- gem install --no-rdoc brakeman; bundle exec brakeman --exit-on-warn .
- gem install --no-rdoc ruby_audit; bundle exec ruby-audit check
- gem install --no-rdoc bundler-audit; bundle-audit update; bundle-audit check
# - rake quality