Skip to content

Commit 21f0160

Browse files
committed
Add code/POM for test of deploying to github from Travis
1 parent 5a1a3c8 commit 21f0160

File tree

2 files changed

+53
-7
lines changed

2 files changed

+53
-7
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
before_install: "git clone -b travis `git config --get remote.origin.url` target/travis"
44

55
node:
6-
#script: mvn verify -Pall,juno,all,kepler,all,luna
7-
script: mvn verify -Pall,juno,all,kepler,all,luna --settings target/travis/settings.xml
8-
6+
#script: mvn verify -Pall,juno,all,kepler,all,luna --settings target/travis/settings.xml
7+
#script: mvn deploy -Pall,juno,all,kepler,all,luna --settings target/travis/settings.xml
8+
#TODO: Delete travis branch (pom.xml does the same thing)...???
9+
script: mvn deploy -Pjuno,linux64
910

1011
env:
1112
global:
12-
# See http://stackoverflow.com/questions/18148318/installing-gems-results-in-error if you have travis gem issues
13-
#BK
13+
# Name, password and oauth2
1414
- secure: "GzqdusL3C5WD7YgHFax4zb2xtkE9UPAyG4UlRPpyDUwM8VzZAujkwigxUVT0Swt3eJj16mmPi1E+krarsGUACoeM1buiWEqG6AMBn5eVHxehgPVYTPZ2CfQAiniJd/wgYBqoB+RXKyLhcWyJJDxfZq/IH+C7fF9WQOTfo8ER5Bc="
1515
- secure: "WiKJWaiOiHVYB39rH/m3uE21rWwnreAOy2SgKRBcoiAjx337RX/DQiaGkI2y57aXggWLhV5JGe/4WqgssPLTV1/KMU19HTaSNOi+VOUaPC5uflFQ4Dk1lhIf0NVjj4emI9pyMu3aqddjoPmFwKeBNbervw7dyq4B/57Ip07fWvU="
16-
#Jantje
17-
#TBD
16+
- secure: "T6kinvAdTDaNPggIcYGCyVfa/HXYRc9uPx51M2aFKt8eY5bxZ3fgTpgPJNOiuEdlukWgtmi+uz4apiVDTUEVijmr7szY/ddfcixQFQkVKgUE/y50nDV0tUwJh7b0DTYpFZOjaSLHaHlV59tDUtNIay+bPw+cQ/7pCeZK4q0lux4="
17+

it.baeyens.arduino.parent/pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,53 @@
4747
</configuration>
4848
</plugin>
4949

50+
<!-- Deploying to github -->
51+
<plugin>
52+
<artifactId>maven-deploy-plugin</artifactId>
53+
<version>2.7</version>
54+
<configuration>
55+
<altDeploymentRepository>internal.repo::default::file://${built.repo.dir}</altDeploymentRepository>
56+
</configuration>
57+
</plugin>
5058

59+
<plugin>
60+
<groupId>com.github.github</groupId>
61+
<artifactId>site-maven-plugin</artifactId>
62+
<version>0.8</version>
63+
<configuration>
64+
<!-- git commit message -->
65+
<message>Maven artifacts for ${project.groupId}:${project.artifactId}:${project.version} ~${maven.build.timestamp}</message>
66+
<noJekyll>true</noJekyll> <!-- disable webpage processing -->
67+
<outputDirectory>${built.repo.dir}</outputDirectory>
68+
<!-- This isn't perfect, because every old SNAPSHOT is kept.. -->
69+
<merge>true</merge>
70+
71+
<!-- <dryRun>true</dryRun> -->
72+
<repositoryOwner>${env.CI_DEPLOY_USERNAME}</repositoryOwner> <!-- github username -->
73+
<repositoryName>arduino-eclipse-plugin</repositoryName> <!-- github repo name -->
74+
<branch>refs/heads/gh-pages</branch> <!-- remote branch name -->
75+
<path>maven/snapshots</path>
76+
77+
<!-- This token, obtained from https://github.com/settings/applications,
78+
encrypted using http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables,
79+
is like a password; encrypt & guard it carefully! -->
80+
<oauth2Token>${env.CI_DEPLOY_OAUTH2_TOKEN}</oauth2Token>
81+
82+
<includes>
83+
<include>**/*</include>
84+
</includes>
85+
</configuration>
86+
<executions>
87+
<!-- run site-maven-plugin's 'site' target as part of the build's normal
88+
'deploy' phase -->
89+
<execution>
90+
<goals>
91+
<goal>site</goal>
92+
</goals>
93+
<phase>deploy</phase>
94+
</execution>
95+
</executions>
96+
</plugin>
5197

5298
</plugins>
5399

0 commit comments

Comments
 (0)