Skip to content

Commit 3658f51

Browse files
committed
Migrate to Circle 2
1 parent 9a767a5 commit 3658f51

File tree

3 files changed

+39
-21
lines changed

3 files changed

+39
-21
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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:
20+
name: Get latest testspace client
21+
command: curl -s https://testspace-client.s3.amazonaws.com/testspace-linux-dev.tgz | sudo tar -zxvf- -C /usr/local/bin
22+
- run:
23+
name: Configure testspace client
24+
command: testspace config url samples.testspace.com
25+
- run:
26+
name: Run rubocop
27+
command: bundle exec rubocop --format emacs --out tmp/rubocop.txt || true
28+
- run:
29+
name: Run brakeman
30+
command: bundle exec brakeman -o tmp/brakeman.json
31+
- run: bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.json" > tmp/brakeman_checkstyle.xml
32+
- run:
33+
name: Run specs
34+
command: CI_REPORTS=spec/reports RAILS_ENV=test COVERAGE=true bundle exec rake ci:setup:rspec spec
35+
- run:
36+
name: Send reports to testspace
37+
command: testspace @.testspace.txt
38+
when: always

.testspace.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Addding some comments here
22
tmp/rubocop.txt{lint}
33
tmp/brakeman_checkstyle.xml
4-
[Tests]$CI_REPORTS/SPEC*.xml{spec}
4+
[Tests]spec/reports/SPEC*.xml{spec}
55
coverage/coverage.xml

circle.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)