This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from stripe/asf-travis-ci
Add a test runner and travis config
- Loading branch information
Showing
5 changed files
with
48 additions
and
3 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 |
---|---|---|
@@ -1 +1 @@ | ||
2.1.5 | ||
2.1.9 |
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,19 @@ | ||
sudo: required | ||
|
||
language: ruby | ||
|
||
services: | ||
- docker | ||
|
||
install: | ||
- docker build -t stripeoss/gaps:latest . | ||
|
||
script: | ||
- docker run --rm stripeoss/gaps:latest ./bin/test-runner | ||
|
||
after_success: | ||
# Upload the latest master build to docker hub: | ||
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then | ||
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; | ||
docker push stripeoss/gaps:latest; | ||
fi |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM phusion/passenger-ruby21 | ||
FROM phusion/passenger-ruby21:0.9.19 | ||
MAINTAINER Greg Brockman <[email protected]> | ||
ENV PORT 3500 | ||
EXPOSE 3500 | ||
|
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,26 @@ | ||
#!/bin/bash | ||
|
||
cat >>site.yaml<<EOF | ||
db: | ||
database: gaps | ||
mongodb_url: mongodb://localhost:27017 | ||
favicon: foo.ico | ||
gaps_url: https://gaps.example.com | ||
info: | ||
domain: example.com | ||
company_name: Example Company | ||
notify: | ||
send_email: false | ||
to: [email protected] | ||
from: [email protected] | ||
oauth: | ||
client_id: "" | ||
client_secret: "" | ||
redirect_uri: http://localhost:3500/oauth2callback | ||
port: 3500 | ||
session: | ||
secret: "reallyonlytesting" | ||
secure: false | ||
EOF | ||
|
||
bundle exec rake test |