Skip to content

Commit 085b9bb

Browse files
committed
Migrate to Circle v2
1 parent 32f82b5 commit 085b9bb

File tree

3 files changed

+40
-21
lines changed

3 files changed

+40
-21
lines changed

.circleci/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

.testspace.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
tmp/rubocop.txt{lint}
33
tmp/brakeman_checkstyle.xml
44
tmp/scss-lint.txt{lint}
5-
[Tests]$CI_REPORTS/TEST*.xml{test}
5+
[Tests]reports/TEST*.xml{test}
66
coverage/coverage.xml

circle.yml

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

0 commit comments

Comments
 (0)