-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now we have removed the dependency on an external site for our example features, we can integrate Quke with a CI service. This change sets up the project to work with Travis CI so future changes will automatically be tested.
- Loading branch information
1 parent
991b3fe
commit 0ea80d5
Showing
5 changed files
with
36 additions
and
2 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,21 @@ | ||
language: ruby | ||
rvm: | ||
- 2.3.1 | ||
|
||
# Travis CI clones repositories to a depth of 50 commits, which is only really | ||
# useful if you are performing git operations. | ||
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Clone-Depth | ||
git: | ||
depth: 3 | ||
|
||
# enable Bundler caching | ||
# https://docs.travis-ci.com/user/languages/ruby#Caching-Bundler | ||
cache: bundler | ||
|
||
# Exclude non-essential gem dependencies | ||
# https://docs.travis-ci.com/user/languages/ruby#Speeding-up-your-build-by-excluding-non-essential-dependencies | ||
bundler_args: --without development | ||
|
||
script: | ||
- bundle exec thin -c quke_demo_app/ -p 4567 -d --tag quke start | ||
- bundle exec cucumber -p quke |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# The config.ru file allows us to use any Rack handler, which in our case is | ||
# [Thin](https://github.com/macournoyer/thin) to start the app, rather than | ||
# relying on Sinatra magic. | ||
# This now means we can start the app using thin directly with direct access | ||
# to all the args you can normally pass into it. We mainly needed this to allow | ||
# us to start the app using thin on Travis-CI, so we could then run the tests | ||
# against it. | ||
require './app' | ||
run Sinatra::Application |