-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gherkin-9' into fire-events
- Loading branch information
Showing
3 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Ruby CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | ||
# | ||
version: 2.1 | ||
|
||
commands: | ||
build: | ||
description: "Build and run the tests" | ||
|
||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- bundle-{{ checksum "cucumber-wire.gemspec" }} | ||
- run: | ||
name: install dependencies | ||
command: | | ||
bundle install --jobs=4 --retry=3 --path vendor/bundle | ||
- save_cache: | ||
paths: | ||
- ./vendor/bundle | ||
key: bundle-{{ checksum "cucumber-wire.gemspec" }} | ||
|
||
test: | ||
description: "Run tests" | ||
steps: | ||
- run: | ||
name: run tests | ||
command: | | ||
bundle exec rake | ||
test_allow_failure: | ||
description: "Run tests (allow failure so workflow is not marked as failed)" | ||
steps: | ||
- run: | ||
name: run tests with allowed failure | ||
command: | | ||
set -o errexit | ||
bundle exec rake | ||
set -o errexit | ||
jobs: | ||
build-ruby-2_3: | ||
docker: | ||
- image: circleci/ruby:2.3 | ||
|
||
working_directory: ~/repo | ||
steps: | ||
- build | ||
- test | ||
|
||
build-ruby-2_4: | ||
docker: | ||
- image: circleci/ruby:2.4 | ||
|
||
working_directory: ~/repo | ||
steps: | ||
- build | ||
- test | ||
|
||
build-ruby-2_5: | ||
docker: | ||
- image: circleci/ruby:2.5 | ||
|
||
working_directory: ~/repo | ||
steps: | ||
- build | ||
- test | ||
|
||
build-ruby-2_6: | ||
docker: | ||
- image: circleci/ruby:2.6 | ||
|
||
working_directory: ~/repo | ||
steps: | ||
- build | ||
- test | ||
|
||
build-ruby-latest: | ||
docker: | ||
- image: circleci/ruby:latest | ||
|
||
working_directory: ~/repo | ||
steps: | ||
- build | ||
- test_allow_failure | ||
|
||
workflows: | ||
version: 2 | ||
|
||
nightly-build: | ||
triggers: | ||
- schedule: | ||
cron: "0 5 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
|
||
jobs: | ||
- build-ruby-2_3 | ||
- build-ruby-2_4 | ||
- build-ruby-2_5 | ||
- build-ruby-2_6 | ||
|
||
build: | ||
jobs: | ||
- build-ruby-2_3 | ||
- build-ruby-2_4 | ||
- build-ruby-2_5 | ||
- build-ruby-2_6 | ||
- build-ruby-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters