|
1 | | -# Source language and JDK version to use. |
| 1 | +# Source language and JDK version to use |
2 | 2 | language: java |
3 | 3 | jdk: oraclejdk7 |
4 | 4 |
|
5 | | -# Compile and package JAR and set build properties. |
6 | | -install: mvn package javadoc:javadoc cobertura:cobertura coveralls:cobertura -DbuildNumber=$TRAVIS_BUILD_NUMBER -DciSystem=travis -Dcommit=${TRAVIS_COMMIT:0:7} -DserviceJobId=$TRAVIS_JOB_ID |
| 5 | +# Compile and package JAR and set build properties |
| 6 | +install: mvn package -DbuildNumber=$TRAVIS_BUILD_NUMBER -DciSystem=travis -Dcommit=${TRAVIS_COMMIT:0:7} |
| 7 | + |
| 8 | +# Perform steps after compilation/test success |
7 | 9 | after_success: |
8 | | - # Get files for use with build, namely the custom Maven settings.xml. |
9 | | - - "git clone https://github.com/ReactPhysics/travis-ci-resources.git target/travis" |
10 | | - # Check if commit s not a pull request, if git repo is official, and if branch is master. If checks pass, deploy artifacts to Maven repository. |
11 | | - - "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == ReactPhysics/React ]] && [[ $TRAVIS_BRANCH == master ]] && mvn deploy --settings target/travis/settings.xml" |
12 | | - # Check if commit s not a pull request, if git repo is official, and if branch is master. If checks pass, update gh-pages branch with generated site/docs. |
13 | | - ## TODO: Only generate for release versions, not snapshots? |
14 | | - - "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == ReactPhysics/React ]] && [[ $TRAVIS_BRANCH == master ]] && chmod +x target/travis/update-gh-pages.sh && ./target/travis/update-gh-pages.sh" |
15 | | - # TODO: Add deployment to downloads site. |
| 10 | + # Get files for use with build, namely the custom Maven settings.xml |
| 11 | + - "git clone https://github.com/flow/travis-ci-resources.git target/travis" |
| 12 | + # Check if commit s not a pull request, if git repo is official, and if branch is master. If checks pass, deploy artifacts to Maven repository |
| 13 | + - "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == flow/React ]] && [[ $TRAVIS_BRANCH == master ]] && mvn deploy --settings target/travis/settings.xml" |
| 14 | + # Check if commit s not a pull request, if git repo is official, and if branch is master. If checks pass, update gh-pages branch with generated site/docs |
| 15 | + - "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == flow/React ]] && [[ $TRAVIS_BRANCH == master ]] && chmod +x target/travis/update-gh-pages.sh && ./target/travis/update-gh-pages.sh" |
16 | 16 |
|
| 17 | +# Notification services |
17 | 18 | notifications: |
18 | | - # Disable build status email notifications, until the issue with forks is fixed. |
| 19 | + # Disable build status email notifications, until the issue with forks is fixed |
19 | 20 | email: false |
20 | 21 | webhooks: |
21 | | - # Send build information and status to Notifico. |
| 22 | + # Send build information and status to Notifico |
22 | 23 | - http://n.tkte.ch/h/1148/c1ZbS3rufJyzaghnxyW5Iu5e |
23 | 24 |
|
| 25 | +# Environmental system variables |
24 | 26 | env: |
25 | 27 | global: |
26 | | - - secure: "RfkXqulUgAeL5BSzWY42nec2xSTFsPi8/SPFgUeJ4qM7OXsDAl2CR/XUwW4YC5uGM0Gq1x+kKXph5/OXmovIW62YLvfUGTdEmEjTSGnwSafAxzVoHbV8glfo/0SX5CaQeZQvbRR6gJxSiNUWJGuiA3UbW3UOMJHKNaWOi1HMf48=" |
27 | | - - secure: "AjQ7sIgwFgicIvFZhRsn8KkA4H2XWEsIDH+QjRTLpOj8eoPcKP/IcfxH8X8KRNBJK/g84K+8YdGCDlZ9QJz349BI+Jzchp+pBAQyau8wK3nR1yerhOxFLwbOB7SdW/rMj+AfufJNq4QBzwjs1b4hoO7NRrmdb5rgbGfu1DeOFSE=" |
| 28 | + # Make the log output cleaner |
| 29 | + - TERM=dumb |
| 30 | + # Super secure, encrypted variables! Ssssh! |
| 31 | + - secure: "bZNAAo5zzbW7QdDENi3SC1iZM4aoa8ppke/A0BE4IAlug/G+0bu3YEYrWFgHM6fm6FyOslxc+XEMej4hfHd+Lmj4wXiFCKUfJlqE6AQV6yyHljQrjdkBnQeWiLdWX1oz9UjxdJpEFuGrSFZ9xW3fKnWfDgDT47rTAGK3VbDrkz8=" |
| 32 | + - secure: "DfECXrCJyKdNVzsO2LMMMyHA3F9vFwn0g00kxM1zCllpULmSQgH5GzxqJOAqfWdx8F9kQOrRcxsBz5AqIxZ+rBrYaDJTM20ogMbiy1zcAVt+2qUfl1H5hKSQRCYp+wwRzMUpet0/t7ANUAQVfbZx51oocPGAJZQ1XpWGZfpAQ5A=" |
28 | 33 | - secure: "KLGHvbSzebvL6CVFMexEXsLCKhkEM4RexL/e9WgGtnvtsXQ/Dtz/VVMAJd9YCS/sHIgBYW+HRGO7NOA1b2Loc7qDGjO21oOuljswCKiwZ/lytpaJ0s8Ygp8SGHMdoHJg/lvNBoI3u9kMYNtzZeFRJMTdfMgjwz3np6YIJ7V2anw=" |
0 commit comments