Skip to content

Commit 6759810

Browse files
lbalmacedajoshcanhelp
authored andcommitted
add Circle CI build
1 parent bd8a805 commit 6759810

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.circleci/config.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
version: 2.1
2+
jobs:
3+
run-tests:
4+
docker:
5+
- image: circleci/ruby:2.4.6-jessie
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
keys:
10+
- gems-v2-{{ checksum "Gemfile.lock" }}
11+
- gems-v2-
12+
- run: bundle check || bundle install
13+
- persist_to_workspace:
14+
root: .
15+
paths:
16+
- Gemfile
17+
- Gemfile.lock
18+
- save_cache:
19+
key: gems-v2--{{ checksum "Gemfile.lock" }}
20+
paths:
21+
- vendor/bundle
22+
# Must define DOMAIN, CLIENT_ID, CLIENT_SECRET and MASTER_JWT env
23+
- run: bundle exec rake test
24+
snyk:
25+
docker:
26+
- image: snyk/snyk-cli:rubygems
27+
steps:
28+
- attach_workspace:
29+
at: .
30+
- run: snyk test
31+
- run:
32+
command: |
33+
if [[ "${CIRCLE_BRANCH}" == "master" ]]
34+
then
35+
snyk monitor --org=auth0-sdks
36+
fi
37+
when: always
38+
39+
workflows:
40+
tests:
41+
jobs:
42+
- run-tests
43+
snyk:
44+
jobs:
45+
- run-tests
46+
- snyk:
47+
# Must define SNYK_TOKEN env
48+
context: snyk-env
49+
requires:
50+
- run-tests

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Auth0 - Ruby
22

3+
[![CircleCI](https://img.shields.io/circleci/project/github/auth0/ruby-auth0/master.svg)](https://circleci.com/gh/auth0/ruby-auth0)
34
[![Gem Version](https://badge.fury.io/rb/auth0.svg)](http://badge.fury.io/rb/auth0)
45
[![Coverage Status](https://coveralls.io/repos/auth0/ruby-auth0/badge.svg?branch=master)](https://coveralls.io/r/auth0/ruby-auth0?branch=master)
56
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/auth0/ruby-auth0/master/frames)

0 commit comments

Comments
 (0)