Skip to content

Commit

Permalink
postProcess fix, artifacts collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Gunreben committed May 13, 2021
1 parent 6c8ce4f commit 4897b68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ after_success:
- java -jar -DACCOUNT_USER=$ACCOUNT_USER ${DEPLOYER_JAR_FILE:-} --icsDirectory /var/tmp/schedule/
--apiKey icalToGoogleDeployment/src/test/resources/client_secrets_apiKey.json
-log INFO
- make createPdf
- zip -r postProcess.zip /var/tmp/schedule
- cp /var/tmp/schedule/allEvents.pdf .
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=$TRAVIS_BRANCH-v0.1.$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://${BLUB}@github.com/rogerGunis/schedule2ics --tags
after_deploy:
- test -f postProcess/${CALENDAR} && jobService/src/main/resources/WithPostProcessing/bin/IcsFileSync.sh
postProcess/${CALENDAR}
- test -f /var/tmp/schedule/${CALENDAR} && jobService/src/main/resources/WithPostProcessing/bin/IcsFileSync.sh
/var/tmp/schedule/${CALENDAR}
deploy:
skip_cleanup: true
provider: releases
Expand All @@ -41,7 +44,7 @@ deploy:
file_glob: true
file:
- postProcess.zip
- postProcess/allEvents.pdf
- allEvents.pdf
on:
repo: rogerGunis/schedule2ics
branches:
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ geschwisterTag:
createPdf:
bash /var/tmp/schedule/allEvents.sh

viewPdf:
pdftk /var/tmp/schedule/allEvents.pdf cat 3-end output /var/tmp/schedule/allEvents.cut.pdf

pdf: compile build2 rmPdf geschwisterTag createPdf view
Expand All @@ -59,10 +60,10 @@ build2:
--holidays ./jobService/src/main/resources/WithPostProcessing/inputData/Holidays.csv -log ALL --withPostprocessing

travis: compile build2 geschwisterTag createPdf
zip -r postProcess.zip postProcess
zip -r postProcess.zip /var/tmp/schedule
mkdir -p .store
java -jar -DACCOUNT_USER=$$ACCOUNT_USER $$(find . -name "icalToGoogleDeployment*.jar") \
--icsDirectory postProcess \
--icsDirectory /var/tmp/schedule \
--apiKey icalToGoogleDeployment/src/test/resources/client_secrets_apiKey.json \
-log INFO

Expand Down

0 comments on commit 4897b68

Please sign in to comment.