Skip to content

Commit

Permalink
Adding a project to mirror the svnKit site and add the dependency in …
Browse files Browse the repository at this point in the history
…the product and the target
  • Loading branch information
tesonep committed Aug 4, 2016
1 parent 3d20183 commit 6614308
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@ before_install:
-in settings.xml.enc -out settings.xml -d
- mv settings.xml ~/.m2/settings.xml
script:

# Deploy the mirror site of SVNKit if it is in dev. Maybe something changed.
- if [ $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "dev" ] ; then
cd org.uqbar.project.wollok.svnkit-mirror-site ;
mvn -U clean install ;
cd .. ;
fi

# Creates the correct profile to run
- cd org.uqbar.project.wollok.releng/
- export PROFILES=normalProfile
- if [ $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "dev" ] ; then export
PROFILES="uploadRepo,uploadProducts"; export UPDATE_SITE="dev" ; fi
- if [ $TRAVIS_PULL_REQUEST == "false" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9.]* ]] ; then
export PROFILES="uploadRepo,uploadProducts"; export UPDATE_SITE="stable" ; fi
- echo "Running with profiles $PROFILES"

# Maven build
- mvn -U -DupdateSiteFolder=$UPDATE_SITE -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID clean install
jacoco:report coveralls:report -P $PROFILES
notifications:
Expand Down
89 changes: 89 additions & 0 deletions org.uqbar.project.wollok.svnkit-mirror-site/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>org.uqbar.project.wollok.svnkit-mirror-site</artifactId>
<packaging>pom</packaging>
<name>Mirror of SVNKit Site</name>

<parent>
<relativePath>../org.uqbar.project.wollok.releng/pom.xml</relativePath>
<groupId>org.uqbar-project</groupId>
<artifactId>wollok-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
</parent>

<build>
<extensions>
<!-- Enabling the use of FTP -->
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>1.0-beta-6</version>
</extension>
</extensions>
<plugins>
<!-- Creates the mirror -->
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>mirror-svnkit</id>
<goals>
<goal>mirror</goal>
</goals>
<phase>package</phase>
<configuration>
<destination>${project.build.directory}/old-orig-repository</destination>
<source>
<repository>
<url>http://eclipse.svnkit.com/svnkit/1.8.x/</url>
<layout>p2</layout>
</repository>
</source>
</configuration>
</execution>
<execution>
<!-- Generate proper p2 site for the old style update sites -->
<id>generate-p2-content</id>
<phase>package</phase>
<goals>
<goal>publish-features-and-bundles</goal>
</goals>
<configuration>
<append>false</append>
<latestVersionOnly>false</latestVersionOnly>
<artifactRepositoryLocation>${project.build.directory}/repository</artifactRepositoryLocation>
<metadataRepositoryLocation>${project.build.directory}/repository</metadataRepositoryLocation>
<sourceLocation>${project.build.directory}/old-orig-repository</sourceLocation>
</configuration>
</execution>
</executions>
</plugin>
<!-- Upload the mirror -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-4</version>
<executions>
<execution>
<id>upload-repo</id>
<phase>install</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>${project.build.directory}/repository/</fromDir>
<includes>**</includes>
<toDir>/mirror/svnKit</toDir>
<url>ftp://uqbar-wiki.org</url>
<serverId>p2-uqbar</serverId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target includeMode="feature" name="org.uqbar.project.wollok.targetplatform" sequenceNumber="42">
<?pde version="3.8"?><target includeMode="feature" name="org.uqbar.project.wollok.targetplatform" sequenceNumber="43">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.xpect.sdk.feature.group" version="0.1.0.201508191347"/>
Expand Down Expand Up @@ -48,6 +48,10 @@
<unit id="org.eclipse.babel.nls_eclipse_es.feature.group" version="4.6.0.v20160723060001"/>
<repository location="http://build.eclipse.org/technology/babel/update-site/I20160723-0600/neon/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.tmatesoft.svnkit.feature.group" version="1.8.12.r10533_v20160129_0158"/>
<repository location="http://update.uqbar.org/mirror/svnKit/"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
</target>
1 change: 1 addition & 0 deletions org.uqbar.project.wollok.updatesite/wollok-product.product
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ Library.
<feature id="org.eclipse.babel.nls_eclipse_es"/>
<feature id="org.eclipse.jdt"/>
<feature id="org.eclipse.team.svn"/>
<feature id="org.tmatesoft.svnkit" version="1.8.12.r10533_v20160129_0158"/>
</features>

<configurations>
Expand Down

0 comments on commit 6614308

Please sign in to comment.