Skip to content

Commit

Permalink
[GH-83] wrapped binary in ZIP for lambda purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Sep 2, 2019
1 parent 25e7c87 commit 384d978
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 @@ -67,6 +67,7 @@ script:
- go build -o $DELIVERABLE
- $SHA512_CMD $DELIVERABLE > ${DELIVERABLE}.sha512.txt
- chmod +x $DELIVERABLE
- zip -j ${DELIVERABLE}.zip $DELIVERABLE
- if [ $TRAVIS_OS_NAME == linux ]; then ./integration-tests.sh $NEXUS_VERSION $NEXUS_API_VERSION ./${DELIVERABLE}; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$ARTIFACT_PUBLICATION" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sonar-scanner -Dsonar.projectKey=030_n3dr -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io -Dsonar.coverage.exclusions=cmd/**,**/*_test.go -Dsonar.go.coverage.reportPaths="coverage.txt"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$ARTIFACT_PUBLICATION" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash <(curl -s https://codecov.io/bash); fi
Expand All @@ -75,8 +76,9 @@ deploy:
api_key: $GITHUB_TOKEN
file:
- $DELIVERABLE
- ${DELIVERABLE}.zip
- ${DELIVERABLE}.sha512.txt
skip_cleanup: true
on:
tags: true
condition: $ARTIFACT_PUBLICATION == true
condition: $ARTIFACT_PUBLICATION == true

0 comments on commit 384d978

Please sign in to comment.