File tree Expand file tree Collapse file tree 3 files changed +40
-21
lines changed Expand file tree Collapse file tree 3 files changed +40
-21
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build :
4+ docker :
5+ - image : circleci/ruby:2.3-node-browsers
6+ steps :
7+ - checkout
8+ - restore_cache :
9+ keys :
10+ - testspace-bundle-{{ checksum "Gemfile.lock" }}
11+ - testspace-bundle-
12+ - run :
13+ name : Install gems
14+ command : bundle install --deployment
15+ - save_cache :
16+ key : testspace-bundle-{{ checksum "Gemfile.lock" }}
17+ paths :
18+ - vendor/bundle
19+ - run : RAILS_ENV=test bundle exec rake db:migrate
20+ - run :
21+ name : Get latest testspace client
22+ command : curl -s https://testspace-client.s3.amazonaws.com/testspace-linux-dev.tgz | sudo tar -zxvf- -C /usr/local/bin
23+ - run :
24+ name : Configure testspace client
25+ command : testspace config url samples.testspace.com
26+ - run :
27+ name : Run rubocop
28+ command : bundle exec rubocop --format emacs --out tmp/rubocop.txt || true
29+ - run :
30+ name : Run brakeman
31+ command : bundle exec brakeman -o tmp/brakeman.json
32+ - run : bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.json" > tmp/brakeman_checkstyle.xml
33+ - run :
34+ name : Run specs
35+ command : CI_REPORTS=reports bundle exec rake minitest test
36+ - run :
37+ name : Send reports to testspace
38+ command : testspace @.testspace.txt
39+ when : always
Original file line number Diff line number Diff line change 22tmp/rubocop.txt{lint}
33tmp/brakeman_checkstyle.xml
44tmp/scss-lint.txt{lint}
5- [Tests]$CI_REPORTS /TEST*.xml{test}
5+ [Tests]reports /TEST*.xml{test}
66coverage/coverage.xml
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments