Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
updating travis
Browse files Browse the repository at this point in the history
  • Loading branch information
atooni committed Nov 5, 2018
1 parent 29a18d3 commit d7c5428
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ libs/
package-lock.json
.bloop
node_modules
target.tgz

blended.sslcontext/notes.txt

Expand Down
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ jobs:
before_script: ./dropbox_uploader.sh list
script: sbt cleanCoverage unidoc
after_failure:
- ./upload-results.sh $TRAVIS_JOB_NUMBER
- ./upload-results.sh $TRAVIS_BUILD_NUMBER
after_success:
- ./upload-results.sh $TRAVIS_JOB_NUMBER
- ./upload-results.sh $TRAVIS_BUILD_NUMBER
- stage: Deploy
script: ./runPublish.sh
- stage: Site
before_script: ./dropbox_uploader.sh download travis/$1/target target
script: sbt buildSite
before_script:
- ./dropbox_uploader.sh download travis/$TRAVIS_BUILD_NUMBER/target.tgz target.tgz
- tar -xzf target.tgz
script:
- sbt buildSite
deploy:
provider: pages
local-dir: target/site
Expand Down
9 changes: 7 additions & 2 deletions upload-results.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh

find . -name "TEST*.xml" -printf "./dropbox_uploader.sh upload %p travis/$1/results/%f\n" | sh
./dropbox_uploader.sh upload target travis/$1/target
rm -Rf target/results
mkdir -p target/results
find . -name "TEST*.xml" -printf "cp %p target/results/%f\n" | sh

tar -czf target.tgz target

./dropbox_uploader.sh upload target.tgz travis/$1/target.tgz

0 comments on commit d7c5428

Please sign in to comment.