Skip to content

Commit

Permalink
Makes travis delete the pdf before reuploading it.
Browse files Browse the repository at this point in the history
  • Loading branch information
urbas committed Apr 8, 2016
1 parent ab1921e commit 97c13f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ addons:
- texlive
- texlive-latex-extra
script:
- export FILE_VERSION=$([[ $TRAVIS_PULL_REQUEST -eq 'false' ]] && echo -n $TRAVIS_BRANCH || echo -n $TRAVIS_PULL_REQUEST)
- export FILE_VERSION=$([[ $TRAVIS_PULL_REQUEST -eq 'false' ]] && echo -n $TRAVIS_BRANCH || echo -n $TRAVIS_PULL_REQUEST.$TRAVIS_BUILD_NUMBER.$(date +%Y-%m-%d.%H%M%S).$TRAVIS_COMMIT)
- make
- curl -X DELETE -umatej:$BINTRAY_API_KEY https://api.bintray.com/content/matej/cam-thesis/cam-thesis/1.0.0/thesis-$FILE_VERSION.pdf
- curl -X PUT -T thesis.pdf -umatej:$BINTRAY_API_KEY https://api.bintray.com/content/matej/cam-thesis/cam-thesis/1.0.0/thesis-$FILE_VERSION.pdf?publish=1
- cd Samples/clean
- ln -s ../../CollegeShields .
- ln -s ../../cam-thesis.cls .
- ln -s ../../Makefile .
- make
- curl -X DELETE -umatej:$BINTRAY_API_KEY https://api.bintray.com/content/matej/cam-thesis/cam-thesis/1.0.0/thesis-$FILE_VERSION.pdf
- curl -X PUT -T thesis.pdf -umatej:$BINTRAY_API_KEY https://api.bintray.com/content/matej/cam-thesis/cam-thesis/1.0.0/SampleClean-$FILE_VERSION.pdf?publish=1

0 comments on commit 97c13f1

Please sign in to comment.