diff --git a/.travis.yml b/.travis.yml index 8d7352f9..ac382f4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 \ No newline at end of file