Skip to content

Commit 388fe44

Browse files
committed
updates for GitHub connected projects
1 parent 2dd7892 commit 388fe44

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
lines changed

.c9build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@ bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.
1313
COVERAGE=true xvfb-run --server-args="-screen 0 1024x768x24" bundle exec rake ci:setup:rspec spec
1414

1515
# Publish
16-
curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
17-
CI_REPORTS=$PWD/spec/reports testspace @.testspace master.c9
16+
17+
## Requires TESTSPACE_TOKEN = $ACCESS_TOKEN:@samples.testspace.com
18+
19+
BRANCH_NAME=`git symbolic-ref --short HEAD`
20+
GIT_URL=`git remote show origin -n | grep Fetch\ URL: | sed 's/.*URL: //'`
21+
REPO_SLUG=`echo ${GIT_URL#*github.com?} | sed 's/.git//'`
22+
23+
CI_REPORTS=$PWD/spec/reports testspace @.testspace $TESTSPACE_TOKEN/${REPO_SLUG/\//:}/${BRANCH_NAME}#c9.Build

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ script:
1919

2020
after_script:
2121
- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
22-
- CI_REPORTS=$PWD/spec/reports testspace @.testspace $TESTSPACE_TOKEN/${TRAVIS_BRANCH}#travis.Build.${TRAVIS_BUILD_NUMBER}
22+
- CI_REPORTS=$PWD/spec/reports testspace @.testspace $TESTSPACE_TOKEN/${TRAVIS_REPO_SLUG/\//:}/${TRAVIS_BRANCH}#travis.Build.${TRAVIS_BUILD_NUMBER}
23+

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Testspace](http://www.testspace.com/public/img/testspace_logo.png)](http://www.testspace.com)
1+
[![Testspace](http://www.testspace.com/img/Testspace.png)](http://www.testspace.com)
2+
23
***
34

45
## Ruby/RSpec sample for demonstrating Testspace based on the [everydayrails's repo](https://github.com/everydayrails/rails-4-1-rspec-3-0)
@@ -16,10 +17,9 @@ Using Multiple Online CI Services:
1617
***
1718
Publishing **Test Content** using www.testspace.com.
1819

19-
[![Space Health](https://samples.testspace.com/projects/116/spaces/436/badge)](https://samples.testspace.com/projects/116/spaces/436 "Test Cases")
20-
[![Space Metric](https://samples.testspace.com/projects/116/spaces/436/metrics/257/badge)](https://samples.testspace.com/spaces/436/schema/Code%20Coverage "Code Coverage (lines)")
21-
[![Space Metric](https://samples.testspace.com/projects/116/spaces/436/metrics/258/badge)](https://samples.testspace.com/spaces/436/schema/Static%20Analysis "Static Analysis (issues)")
22-
20+
[![Space Health](https://samples.testspace.com/projects/158/spaces/726/badge)](https://samples.testspace.com/projects/158/spaces/726 "Test Cases")
21+
[![Space Metric](https://samples.testspace.com/projects/158/spaces/726/metrics/658/badge)](https://samples.testspace.com/spaces/726/schema/Code%20Coverage "Code Coverage (lines)")
22+
[![Space Metric](https://samples.testspace.com/projects/158/spaces/726/metrics/659/badge)](https://samples.testspace.com/spaces/726/schema/Static%20Analysis "Static Analysis (issues)")
2323

2424
***
2525

@@ -45,16 +45,17 @@ Publishing Results using **Testspace**:
4545

4646
<pre>
4747
curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
48-
testspace @.testspace $TESTSPACE_TOKEN/$BRANCH_NAME
48+
testspace @.testspace $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$BRANCH_NAME#Build_Number
4949
</pre>
5050

5151

52-
Checkout the [Space](https://samples.testspace.com/projects/ruby.rspec).
52+
Checkout the published [Test Content](https://samples.testspace.com/projects/testspace-samples:ruby.rspec). Note that the `.testspace` file contains the [set of files](http://help.testspace.com/how-to:publish-content#publishing-via-content-list-file) to publish.
53+
5354

5455
***
56+
5557
To replicate this sample:
56-
- Account at www.testspace.com.
57-
- CI Environment Variable called **TESTSPACE_TOKEN** required:
58-
- `TESTSPACE_TOKEN` = `credentials@my-org-name.testspace.com/my-project`
58+
- Setup account at www.testspace.com.
59+
- Create a CI Environment Variable called **TESTSPACE_TOKEN**:
60+
- `TESTSPACE_TOKEN` = `credentials@Your-Org-Name.testspace.com`
5961
- `credentials` set to `username:password` or your [access token](http://help.testspace.com/reference:client-reference#login-credentials).
60-
- `my-org-name.testspace.com/my-project` based on your *organization* (subdomain) and *project* names.

circle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ test:
1313

1414
post:
1515
- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
16-
- CI_REPORTS=$CIRCLE_TEST_REPORTS testspace @.testspace $TESTSPACE_TOKEN/${CIRCLE_BRANCH}#circle.Build.${CIRCLE_BUILD_NUM}
16+
- CI_REPORTS=$CIRCLE_TEST_REPORTS testspace @.testspace $TESTSPACE_TOKEN/${CIRCLE_PROJECT_USERNAME}:${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}#circle.Build.${CIRCLE_BUILD_NUM}
17+

shippable.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ rvm:
66
env:
77
global:
88
- DISPLAY=localhost:1.0
9-
- secure: SS9SmQHVpnMJSeaiIH1DdP4Wm0csLLbn9KaxN4JAVe8CU6Grc6zumDbrdz70vw64ltH4op76Au3j02GvYDVK14e7zJjqJ5UHqcRp3ECik5aehZ4g0CtgRrx70jh0G+NsJKCXIkeMRiDvk3v0jVsJ0k/S7eXgqgg2TyR8NqnW3FkcWnaf8piE7IJWcDcspLtsP4/+oJb2EY7DKsaooWHgJ6OwBXQkIZCVIkuQpFwF9YkT6HE++9/UPLIOgUnLScoKoYKq+1IW7/DZwVdb2l+Md1mivrZ+5EPVDf4NfomcAaBr09AwdHBcPtBAyXzEaiGkO9n5xayoHPX8/ooK6loIHg==
10-
9+
- secure: P1IXQO5Q5aT9SLK0jqCe+y5tt0EarCtc/9FoWcgGGHbEW01RDPBKZCdnqd2Sqe38NDd4YE39lxBSxDkWT6M8Qkg5k1iQNrDOW6ES3cyMQrgpIFsvRegaJUWKGDdZaU+ck+7+QQimxuxeZHMjpBJin0D/Pdeb6o4xciuV8mQlpUDAiaTPxJ+NcLyJvi7MuTPeUl+NXr6zujQUsg94W/+5MrrRxiYRqm002alEHeECXThxVoGCKzpOOQA0bACni7Rjb7rI1leexD1bHd3xnegxfYAmwYGRNqzegav7gS0YRGohVAtDFZQV0iQnMpfUkHKsTI2NW+mFiVj8RDZabWjIpw==
10+
1111
addons:
1212
firefox: "46.0"
1313

@@ -25,5 +25,6 @@ build:
2525

2626
post_ci:
2727
- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
28-
- CI_REPORTS=$PWD/spec/reports testspace @.testspace $TESTSPACE_TOKEN/${BRANCH}#ship.Build.${BUILD_NUMBER}
28+
- CI_REPORTS=$PWD/test/reports testspace @.testspace $TESTSPACE_TOKEN/${SHIPPABLE_REPO_SLUG/\//:}/${BRANCH}#ship.Build.${BUILD_NUMBER}
29+
2930

0 commit comments

Comments
 (0)