|
1 | 1 | #Build the Arduino Eclipse Plugin using Maven
|
2 | 2 |
|
3 | 3 | node:
|
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 |
| 4 | +#Make Maven builds quiet to reduce logs (Travis will kill the process if 4MB log exceeded) |
| 5 | +#But not too quiet - see travis_exec_and_print_time.sh for our timer (Travis will kill the process after 10 mins of no output) |
| 6 | +#Also needs to be kept under 75 mins (keep as short as possible as there are nice people making these servers free for our use) |
7 | 7 | script:
|
8 |
| - #Check if we have access to our Nexus login details. |
| 8 | + #Show if we have access to our Travis "secure" Nexus login details. |
| 9 | + #If not available it is a pull request which we just verify |
| 10 | + #If available it is a commit on the master and we deploy (to the Nexus repository) |
9 | 11 | - sh -c "if $TRAVIS_SECURE_ENV_VARS; then echo Travis SECURE available -- Deploy; else echo Travis SECURE NOT available -- Verify; fi"
|
10 | 12 |
|
11 | 13 | #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 | 14 | - 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 |
|
15 |
| - |
16 |
| - |
17 | 16 | #Several usernames and passwords/tokens are required for deployment.
|
18 | 17 | #When testing on your local/remote setup then you need to set/export env. variables:
|
19 | 18 | #(See settings.xml)
|
|
29 | 28 | #These are the Nexus details and GPG signing token for Nexus deployment.
|
30 | 29 | #The Nexus repo is hardcoded as com.github.brodykenrick.arduino-eclipse-plugin in the POM.XML (doing otherwise produces warnings)
|
31 | 30 | #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). |
| 31 | + #Travis encrypted variables names and tokens (need to change triggering github repo for encryption to work). |
33 | 32 | #Nexus Username, pass and GPG
|
34 | 33 | # 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=" |
| 34 | + |
39 | 35 | #jantje/arduino-eclipse-plugin
|
40 | 36 | - secure: "kC8R35qKesohed2C47R2xO4uVKhRGahuO+7kEDaJwWIn7QlefJSgJ8IK9tGng+IcUUXD4ClKAT1RJgJnnchtO0jpUEy+MIXDQi1PCc2UkIsYa6XMw5Nf0EMppHiJM2LLbf1n/urGmuo/RwKWXLdC7SLuSmqgLD82AbrGA2xXSXM="
|
41 | 37 | - secure: "gUpJ6dlh/SBsJP+QlNFbNhchZzKRDmwuWjrId7lTyToVhAzoQSygNS7DfuemfJkhIdHVkZELnvfTx3FaeIfW59zQ2654HMiUrvUINFys+pq6C0vwPyQzAXg4KLn6kExgbn6md5zb8w2fE68Mb2y20jduhzBOAVWvK361lC4oeSI="
|
42 | 38 | - secure: "ZNF1Tc17sq5tsChKi4+yAv6mqhxOfq/zZ38TnRYr1zos2G1jCJJNw4zq1ojUGFViCxdt76xwlDYwavjzAMfsdI3/zoPePtaFJj3w8V6y4C10rgGW67bY4HwW2i0sudIbSWQ+skmG2zbVvJLrIMj2c6IXDM13sTW1Dv+Pt4tTaSs="
|
43 | 39 |
|
| 40 | + #Only for development work on brodykenrick's repo |
| 41 | + #brodykenrick/arduino-eclipse-plugin |
| 42 | +# - secure: "CkTScsFgbeqTznfGoAhhS0XRie2jr+syjpD3Vvn8Gw/OFCXkKjDEBWUebQdpJjXe9ia23dmTdQMFwp2HcPhrUj6cpnHNcOqVSfPRKfYPbYgXMmVSciGfqkgY3aWArddQ1G8SOMzivfYW6QZIkhanFsk00HkWOrYzxppXyA3m4GY=" |
| 43 | +# - secure: "bd0gCncNkyhwmIHkir2d7jprS+HNTd4DOVutYpIKQTVaJpvFKRw4anqZGMZp3wwxPyP3i30fMVvPoFJVCEphxRuJRomeqgrJJUpKAsh5QAIODYj9A2A8/KDa+jrTtbpPh16YAiMPmnMgq4NT3Wd5cjZuuBHxRmvaMMlb6BoJCO0=" |
| 44 | +# - secure: "oFSaKCjBm8L8ZgSvC3rAPKIXcXXJuEb+3eQ+lJbU84QK6C7wRd+2mz4fQ0E5GNSNxWACPbtypopUCPj4auCazhcbudO2wzpAksfJJpkIXd6vZN6xmxJLRzQWp7aNQG7a0UWvuY49/11IY834uhxPoJHBIFRh9jALHMLeF4epfko=" |
| 45 | + |
44 | 46 | # This is the Github username of the repository of the source we are building.
|
45 | 47 | #Needs to be inline with the repo being built (i.e. change it).
|
46 | 48 | - CI_GITHUB_REPOUSERNAME=jantje
|
| 49 | + #Only for development work on brodykenrick's repo |
47 | 50 | # - CI_GITHUB_REPOUSERNAME=brodykenrick
|
48 | 51 |
|
49 |
| - |
50 |
| - |
51 |
| - |
52 |
| - |
0 commit comments