File tree Expand file tree Collapse file tree 6 files changed +16
-12
lines changed
Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ COVERAGE=true xvfb-run --server-args="-screen 0 1024x768x24" bundle exec rake ci
1414
1515# Publish
1616
17- # # Requires TESTSPACE_TOKEN = $ACCESS_TOKEN:@samples.testspace.com
17+ # # Requires TESTSPACE_TOKEN = $ACCESS_TOKEN:@samples.testspace.com. Also note that CI_REPORTS is referenced in .testspace.txt
1818
1919BRANCH_NAME=` git symbolic-ref --short HEAD`
2020GIT_URL=` git remote show origin -n | grep Fetch\ URL: | sed ' s/.*URL: //' `
2121REPO_SLUG=` echo ${GIT_URL#* github.com?} | sed ' s/.git//' `
2222
23- CI_REPORTS=$PWD /spec/reports testspace @.testspace $TESTSPACE_TOKEN /${REPO_SLUG/ \/ /: } /${BRANCH_NAME} # c9.Build
23+ CI_REPORTS=$PWD /spec/reports testspace @.testspace.txt $TESTSPACE_TOKEN /${REPO_SLUG/ \/ /: } /${BRANCH_NAME} # c9.Build
File renamed without changes.
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ script:
1717
1818 - COVERAGE=true bundle exec rake ci:setup:rspec spec
1919
20+ # Requires TESTSPACE_TOKEN environment variable. Also note that CI_REPORTS is referenced in .testspace.txt
2021after_script :
2122 - 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_REPO_SLUG/\//:}/${TRAVIS_BRANCH}#travis.Build.${TRAVIS_BUILD_NUMBER}
23+ - CI_REPORTS=$PWD/spec/reports testspace @.testspace.txt $TESTSPACE_TOKEN/${TRAVIS_REPO_SLUG/\//:}/${TRAVIS_BRANCH}#travis.Build.${TRAVIS_BUILD_NUMBER}
2324
Original file line number Diff line number Diff line change @@ -45,17 +45,18 @@ Publishing Results using **Testspace**:
4545
4646<pre >
4747curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
48- testspace @.testspace $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$BRANCH_NAME#Build_Number
48+ testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$BRANCH_NAME#$BUILD_NUMBER
4949</pre >
5050
5151
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-
52+ Checkout the published [ Test Content] ( https://samples.testspace.com/projects/testspace-samples:ruby.rspec ) . Note that the ` .testspace.txt ` file contains the [ set of files] ( http://help.testspace.com/how-to:publish-content#publishing-via-content-list-file ) to publish.
5453
5554***
5655
5756To replicate this sample:
5857 - Setup account at www.testspace.com .
59- - Create a CI Environment Variable called ** TESTSPACE_TOKEN** :
60- - ` TESTSPACE_TOKEN ` =
` [email protected] ` 61- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
58+ - Create a Environment variable called ` TESTSPACE_TOKEN `
59+ - ` TESTSPACE_TOKEN ` =
` [email protected] ` 60+ - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
61+ - For [ CI use secure environment variable] ( http://help.testspace.com/how-to:add-to-ci ) called ` TESTSPACE_TOKEN `
62+
Original file line number Diff line number Diff line change 1010 - bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.json" > tmp/brakeman_checkstyle.xml
1111
1212 - RAILS_ENV=test COVERAGE=true bundle exec rake ci:setup:rspec spec
13-
13+
14+ # Requires TESTSPACE_TOKEN environment variable. Also note that CI_REPORTS is referenced in .testspace.txt
1415 post :
1516 - 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_PROJECT_USERNAME}:${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}#circle.Build.${CIRCLE_BUILD_NUM}
17+ - CI_REPORTS=$CIRCLE_TEST_REPORTS testspace @.testspace.txt $TESTSPACE_TOKEN/${CIRCLE_PROJECT_USERNAME}:${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}#circle.Build.${CIRCLE_BUILD_NUM}
1718
Original file line number Diff line number Diff line change 2323
2424 - COVERAGE=true xvfb-run --server-args="-screen 0 1024x768x24" bundle exec rake ci:setup:rspec spec
2525
26+ # Requires TESTSPACE_TOKEN environment variable. Also note that CI_REPORTS is referenced in .testspace.txt
2627 post_ci :
2728 - 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/${SHIPPABLE_REPO_SLUG/\//:}/${BRANCH}#ship.Build.${BUILD_NUMBER}
29+ - CI_REPORTS=$PWD/spec/reports testspace @.testspace.txt $TESTSPACE_TOKEN/${SHIPPABLE_REPO_SLUG/\//:}/${BRANCH}#ship.Build.${BUILD_NUMBER}
2930
3031
You can’t perform that action at this time.
0 commit comments