File tree Expand file tree Collapse file tree 4 files changed +30
-29
lines changed
Expand file tree Collapse file tree 4 files changed +30
-29
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ mvn pmd:pmd
1313# Test
1414mvn cobertura:cobertura -Dcobertura.report.format=xml
1515
16- # Push content
17-
18- # # Requires TESTSPACE_TOKEN = $ACCESS_TOKEN:@samples.testspace.com.
16+ # Download and configure the Testspace client
17+ curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME /bin
18+ # note c9 host requires "access token", storing in ~/.netrc (refer to https://help.testspace.com/reference:client-reference#login-credentials)
19+ CI=true testspace config url samples.testspace.com
20+ testspace -v
1921
20- BRANCH_NAME=` git symbolic-ref --short HEAD`
21- GIT_URL=` git remote show origin -n | grep Fetch\ URL: | sed ' s/.*URL: //' `
22- REPO_SLUG=` echo ${GIT_URL#* github.com?} | sed ' s/.git//' `
23-
24- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
25- testspace @.testspace.txt $TESTSPACE_TOKEN /${REPO_SLUG/ \/ /: } /${BRANCH_NAME} # c9.Build
22+ # Push content
23+ testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml " #c9.Build" --repo git
Original file line number Diff line number Diff line change 11language :
22 - java
33
4+ before_script :
5+ - mkdir -p $HOME/bin
6+ - curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
7+ - testspace config url samples.testspace.com
8+ - testspace -v
9+
410script :
511 - mvn clean compile
612 - mvn pmd:pmd
713 - mvn cobertura:cobertura -Dcobertura.report.format=xml
814
9- # Requires TESTSPACE_TOKEN environment variable.
1015after_script :
11- - curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
12- - testspace @.testspace.txt $TESTSPACE_TOKEN/${TRAVIS_REPO_SLUG/\//:}/${TRAVIS_BRANCH}#travis.Build.${TRAVIS_BUILD_NUMBER}
13-
16+ - testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ machine:
22 java :
33 version : openjdk7
44
5+ dependencies :
6+ pre :
7+ - curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
8+ - testspace config url samples.testspace.com
9+ - testspace -v
10+
511test :
612 override :
7- - mvn clean compile
8- - mvn pmd:pmd
9- - mvn cobertura:cobertura -Dcobertura.report.format=xml
13+ - mvn clean compile
14+ - mvn pmd:pmd
15+ - mvn cobertura:cobertura -Dcobertura.report.format=xml
1016
11- # Requires TESTSPACE_TOKEN environment variable.
1217 post :
13- - curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
14- - testspace @.testspace.txt $TESTSPACE_TOKEN/${CIRCLE_PROJECT_USERNAME}:${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}#circle.Build.${CIRCLE_BUILD_NUM}
15-
18+ - testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
Original file line number Diff line number Diff line change 11language : java
22
3- env :
4- global :
5- - secure : TokbBjhsgqfY8UbAhepYL2ojZStxaSmVlHfoZQhi4FJEZNTKO3WdxgyNz0tfW88SsqIjHNik8JlAodNieG54zstaSojcszw0zJ4XTUkdxxvjCsgBXGXCu8mVt0wcZUmLKSeX86yY3+NCObE68bGJXhYqW6+WGlK3qvoNlWkBi+IGt3LvmRCDFKttXlzxGKR1pXxLiK0n2l26FCX8blR1hOzKZ4PVGGuvM+6ivJni2WbaHIfUfRDA9AZOto50LwGVjWg74pgq9ekMNMooFz+fWp1aOKzHGL2qs5HDCy4iYzH4PbJD3Njs0Huyq5gc5gSfV7BaEGsTnODu4HsCtwL0HA==
6-
73build :
84 ci :
5+ - mkdir -p $HOME/bin
6+ - curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
7+ - testspace config url samples.testspace.com
8+ - testspace -v
99 - mvn clean compile
1010 - mvn pmd:pmd
1111 - mvn cobertura:cobertura -Dcobertura.report.format=xml
1212
13- # Requires TESTSPACE_TOKEN environment variable.
1413 on_success :
15- - curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
16- - testspace @.testspace.txt $TESTSPACE_TOKEN/${SHIPPABLE_REPO_SLUG/\//:}/${BRANCH}#ship.Build.${BUILD_NUMBER}
14+ - testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
1715
1816 on_failure :
19- - curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
20- - testspace @.testspace.txt $TESTSPACE_TOKEN/${SHIPPABLE_REPO_SLUG/\//:}/${BRANCH}#ship.Build.${BUILD_NUMBER}
17+ - testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
You can’t perform that action at this time.
0 commit comments