Created
August 14, 2014 10:40
-
-
Save lukespragg/7a87f9af07ebac045899 to your computer and use it in GitHub Desktop.
Travis-CI configuration snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after_success: | |
- "test ${TRAVIS_BRANCH} = master && cd $TRAVIS_BUILD_DIR/target && travis-artifacts upload --path $PROJECT_ARTIFACT_ID-* --target-path $TRAVIS_BUILD_NUMBER" | |
env: | |
global: | |
- "ARTIFACTS_S3_BUCKET=sc-snapshots" | |
- "ARTIFACTS_AWS_REGION=us-east-1" | |
- secure: "Ksr3R/yLPtTnLlzouCch4c/O8WhdCnRh5qGOcVxFTvhZ8iQ7tA4f37cjmv4D\ndILSF29rl830HuBk8BOurr/GZEuNLmGFIR+8p/CG9kRFUiOxqYbo2fEhFbmT\n+3sAAm9M82tEjBE3r6EBVrO+8UcGCZJSpuoHpaRnGnPMTzX6mBM=" | |
- secure: "07ZvSYyJpZI+MTOCxH28PGnvD3cn1/0E6t4DfcNMfXRW5kEWs2BWUBvytd9J\nu0MyL1IuoExLaNuDMKC5Mw/7dHIbNJvSpV9gyyHz6NHe3qlGhbgZcgpvZnMO\n60Gjkn3I9LX6BWULhFG9cEFArGhi6v1mAM7Qvk/+XfNV0QnGo0Y=" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after_sucess: | |
- export PROJECT_ARTIFACT_ID="`sed -n 's|.*<artifactId>\(.*\)</artifactId>.*|\1|p' $TRAVIS_BUILD_DIR/pom.xml | awk '{ print $1; exit }'`" && echo Project artifactId is $PROJECT_ARTIFACT_ID | |
- export PROJECT_NAME="`sed -n 's|.*<name>\(.*\)</name>.*|\1|p' $TRAVIS_BUILD_DIR/pom.xml | awk '{ print $1; exit }'`" && echo Project name is $PROJECT_NAME | |
- export PROJECT_VERSION="`sed -n 's|.*<version>\(.*\)</version>.*|\1|p' $TRAVIS_BUILD_DIR/pom.xml | awk '{ print $1; exit }'`" && echo Project version is $PROJECT_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment