Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Added the travis.yml file
Browse files Browse the repository at this point in the history
Change-Id: I5b515bcceedb41d14ec401fc42330f35dc4797cb
Reviewed-on: http://reviews.cloudfoundry.org/13638
Tested-by: CI Master <cf-ci@rbcon.com>
Reviewed-by: Chun Yu <yuc@rbcon.com>
  • Loading branch information
April Yu and Bleicke committed Jan 29, 2013
1 parent faf5345 commit 0bcc2a0
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 173 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,3 +10,4 @@ vendor/
.gitreview
reports/
service_plan_version_test.sh
.idea
11 changes: 11 additions & 0 deletions .travis.yml
@@ -0,0 +1,11 @@
language: ruby
rvm:
- "1.8.7"
- "1.9.2"
- "1.9.3"
- jruby-18mode # JRuby in 1.8 mode
- jruby-19mode # JRuby in 1.9 mode
- rbx-18mode
- rbx-19mode
# uncomment this line if your project needs to run something other than `rake`:
script: bundle exec tools/scripts/run_tests.sh
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -22,7 +22,7 @@ GEM
cf-uaa-lib (1.3.3)
multi_json
cf-uaac (1.3.3)
cf-uaa-lib (<= 1.3.3, >= 1.3.3)
cf-uaa-lib (>= 1.3.3, <= 1.3.3)
em-http-request (= 0.3.0)
eventmachine
highline
Expand Down
172 changes: 0 additions & 172 deletions tools/scripts/ci.sh

This file was deleted.

21 changes: 21 additions & 0 deletions tools/scripts/run_tests.sh
@@ -0,0 +1,21 @@
#!/bin/bash

only_run_tests ()
{
echo -e "http://api.cf54.dev.las01.vcsops.com" | bundle exec rake tests
}

create_users_and_run_tests ()
{
echo -e "http://api.cf54.dev.las01.vcsops.com\nzhangcheng@rbcon.com\nzhangcheng" | bundle exec rake tests
}

file="~/.bvt/config.yml"
eval file="$file"

if [ -e "$file" ]
then
only_run_tests
else
create_users_and_run_tests
fi

0 comments on commit 0bcc2a0

Please sign in to comment.