|
1 | 1 | #Build the Arduino Eclipse Plugin using Maven |
| 2 | + |
2 | 3 | node: |
3 | | -script: mvn verify -Pall,juno,all,kepler,all,luna |
| 4 | +#Make quiet to reduce logs (Travis will kill if 4MB log exceeded) |
| 5 | +#But not too quiet - see travis_exec_and_print_time.sh (Travis will kill after 10 mins of no output) |
| 6 | +#we also need to keep it under 75 mins |
| 7 | +script: |
| 8 | + #Check if we have access to our Nexus login details. |
| 9 | + - sh -c "if $TRAVIS_SECURE_ENV_VARS; then echo Travis SECURE available -- Deploy; else echo Travis SECURE NOT available -- Verify; fi" |
| 10 | + |
| 11 | + #Execute the maven commands depending on SECURE availabilty and print the elapsed time out periodically. |
| 12 | + #mvn deploy (or verify) -Pall,juno,kepler,luna --quiet --settings settings.xml |
| 13 | + - sh -c "if $TRAVIS_SECURE_ENV_VARS; then ./travis_exec_and_print_time.sh 'mvn deploy -Pall,juno,all,kepler,all,luna --quiet --settings settings.xml'; else ./travis_exec_and_print_time.sh 'mvn verify -Pall,juno,all,kepler,all,luna --quiet --settings settings.xml'; fi" |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +#Several usernames and passwords/tokens are required for deployment. |
| 18 | +#When testing on your local/remote setup then you need to set/export env. variables: |
| 19 | +#(See settings.xml) |
| 20 | +#CI_NEXUS_USERNAME |
| 21 | +#CI_NEXUS_OAUTH2_TOKEN |
| 22 | +#CI_GPG_PASSPHRASE |
| 23 | +#CI_GITHUB_REPOUSERNAME |
| 24 | +env: |
| 25 | + global: |
| 26 | + #Make sure Maven doesn't run out of heap memory. |
| 27 | + - MAVEN_OPTS="-Xmx1024M" |
| 28 | + |
| 29 | + #These are the Nexus details and GPG signing token for Nexus deployment. |
| 30 | + #The Nexus repo is hardcoded as com.github.brodykenrick.arduino-eclipse-plugin in the POM.XML (doing otherwise produces warnings) |
| 31 | + #This is good to use until we want more consistency in naming |
| 32 | + #Travis encrypted variables names and tokens (need to change for correct repo though for encryption to work). |
| 33 | + #Nexus Username, pass and GPG |
| 34 | + # These point to the above nexus server/groupid but need to be encrypted against the repo Travis is getting code from (i.e. change it). |
| 35 | + #brodykenrick/arduino-eclipse-plugin |
| 36 | +# - secure: "CkTScsFgbeqTznfGoAhhS0XRie2jr+syjpD3Vvn8Gw/OFCXkKjDEBWUebQdpJjXe9ia23dmTdQMFwp2HcPhrUj6cpnHNcOqVSfPRKfYPbYgXMmVSciGfqkgY3aWArddQ1G8SOMzivfYW6QZIkhanFsk00HkWOrYzxppXyA3m4GY=" |
| 37 | +# - secure: "bd0gCncNkyhwmIHkir2d7jprS+HNTd4DOVutYpIKQTVaJpvFKRw4anqZGMZp3wwxPyP3i30fMVvPoFJVCEphxRuJRomeqgrJJUpKAsh5QAIODYj9A2A8/KDa+jrTtbpPh16YAiMPmnMgq4NT3Wd5cjZuuBHxRmvaMMlb6BoJCO0=" |
| 38 | +# - secure: "oFSaKCjBm8L8ZgSvC3rAPKIXcXXJuEb+3eQ+lJbU84QK6C7wRd+2mz4fQ0E5GNSNxWACPbtypopUCPj4auCazhcbudO2wzpAksfJJpkIXd6vZN6xmxJLRzQWp7aNQG7a0UWvuY49/11IY834uhxPoJHBIFRh9jALHMLeF4epfko=" |
| 39 | + #jantje/arduino-eclipse-plugin |
| 40 | + - secure: "kC8R35qKesohed2C47R2xO4uVKhRGahuO+7kEDaJwWIn7QlefJSgJ8IK9tGng+IcUUXD4ClKAT1RJgJnnchtO0jpUEy+MIXDQi1PCc2UkIsYa6XMw5Nf0EMppHiJM2LLbf1n/urGmuo/RwKWXLdC7SLuSmqgLD82AbrGA2xXSXM=" |
| 41 | + - secure: "gUpJ6dlh/SBsJP+QlNFbNhchZzKRDmwuWjrId7lTyToVhAzoQSygNS7DfuemfJkhIdHVkZELnvfTx3FaeIfW59zQ2654HMiUrvUINFys+pq6C0vwPyQzAXg4KLn6kExgbn6md5zb8w2fE68Mb2y20jduhzBOAVWvK361lC4oeSI=" |
| 42 | + - secure: "ZNF1Tc17sq5tsChKi4+yAv6mqhxOfq/zZ38TnRYr1zos2G1jCJJNw4zq1ojUGFViCxdt76xwlDYwavjzAMfsdI3/zoPePtaFJj3w8V6y4C10rgGW67bY4HwW2i0sudIbSWQ+skmG2zbVvJLrIMj2c6IXDM13sTW1Dv+Pt4tTaSs=" |
| 43 | + |
| 44 | + # This is the Github username of the repository of the source we are building. |
| 45 | + #Needs to be inline with the repo being built (i.e. change it). |
| 46 | + - CI_GITHUB_REPOUSERNAME=jantje |
| 47 | +# - CI_GITHUB_REPOUSERNAME=brodykenrick |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
0 commit comments