Initial commit of CI setup (scripts/pom.xml's/...)

This commit is contained in:
Roland Kluge 2018-04-20 10:30:36 +02:00
parent 158d40b57f
commit 04989f4e08
19 changed files with 280 additions and 6 deletions

6
.gitignore vendored
View file

@ -1,6 +0,0 @@
src/org.cmoflon.runtime/projects/CMoflonAdvancedDemo/bin/.keepgen
src/org.cmoflon.runtime/projects/CMoflonAdvancedDemo/bin/.keepsrc
src/org.cmoflon.runtime/projects/cMoflonDemoLanguage/bin/.keepgen
src/org.cmoflon.runtime/projects/cMoflonDemoLanguage/bin/.keepsrc
src/org.cmoflon.runtime/.project

15
shippable.bash Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# This script contains the CI build workflow for this repository
# Author: Roland Kluge
# Date: 2018-04-20
#
# Change into Tycho root parent directory
cd ./src/
echo "Run Tycho (clean compile)"
mvn -q clean compile integration-test || exit -1
echo "Publish JUnit test results"
find . -path "*/target/*/TEST*.xml" -exec cp {} /root/src/github.com/eMoflon/emoflon-core/shippable/testresults/ \;

19
shippable.yml Normal file
View file

@ -0,0 +1,19 @@
language: none
build:
pre_ci_boot:
image_name: emoflon/emoflon-ci-from-github
image_tag: latest
pull: true
ci:
- bash ./shippable.bash
integrations:
# See http://docs.shippable.com/ci/email-notifications/
notifications:
- integrationName: email
type: email
sendConsoleLogs: true
recipients:
--last_committer

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
<stringAttribute key="M2_GOALS" value="clean compile integration-test"/>
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
<booleanAttribute key="M2_OFFLINE" value="false"/>
<stringAttribute key="M2_PROFILES" value=""/>
<listAttribute key="M2_PROPERTIES"/>
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
<intAttribute key="M2_THREADS" value="1"/>
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
<stringAttribute key="M2_USER_SETTINGS" value=""/>
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:org.cmoflon.parent}"/>
</launchConfiguration>

14
src/.mvn/extensions.xml Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<!-- https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds -->
<!-- Derived packaging:
eclipse-plugin if META-INF/MANIFEST.MF found
eclipse-feature if feature.xml found
eclipse-test-plugin if Bundle-SymbolicName ending with .tests found in META-INF/MANIFEST.MF
-->
<extension>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pomless</artifactId>
<version>1.0.0</version>
</extension>
</extensions>

17
src/.project Normal file
View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.cmoflon.parent</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

View file

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

1
src/org.cmoflon.feature/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

View file

@ -1 +1,2 @@
/bin/
/target/

View file

@ -1 +1,2 @@
/bin/
/target/

View file

@ -0,0 +1,3 @@
/bin/
/target/
/.settings/

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.cmoflon.releng.target</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="org.moflon.core.releng.target" sequenceNumber="5">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.draw2d.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.xpand" version="0.0.0"/>
<unit id="org.eclipse.xtend" version="0.0.0"/>
<unit id="org.eclipse.xtend.typesystem.emf" version="0.0.0"/>
<repository location="http://download.eclipse.org/releases/oxygen/201710111001/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.moflon.core.feature.feature.group" version="1.2.0.201804101413"/>
<repository location="http://emoflon.org/emoflon-core-updatesite/stable/updatesite/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.moflon.ide.feature.feature.group" version="3.2.0.201804101444"/>
<repository location="http://emoflon.org/eclipse-plugin/beta/updatesite/"/>
</location>
</locations>
</target>

View file

@ -0,0 +1,12 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.cmoflon</groupId>
<artifactId>org.cmoflon.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>org.cmoflon.releng.target</artifactId>
<packaging>eclipse-target-definition</packaging>
</project>

View file

@ -1,6 +1,8 @@
/target
/build
/features
/plugins
/**/.polyglot.build.properties
artifacts.jar
content.jar
logs.zip

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/org.cmoflon.feature_2.0.0.qualifier.jar" id="org.cmoflon.feature" version="2.0.0.qualifier">
<category name="org.cmoflon.category"/>
</feature>
<category-def name="org.cmoflon.category" label="cMoflon">
<description>
Core Components of cMoflon
</description>
</category-def>
<repository-reference location="http://emoflon.org/emoflon-core-updatesite/stable/updatesite/" enabled="true" />
<repository-reference location="http://emoflon.org/eclipse-plugin/beta/updatesite/" enabled="true" />
</site>

View file

@ -0,0 +1,12 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.cmoflon</groupId>
<artifactId>org.cmoflon.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>org.cmoflon.updatesite</artifactId>
<packaging>eclipse-repository</packaging>
</project>

107
src/pom.xml Normal file
View file

@ -0,0 +1,107 @@
<?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>
<groupId>org.cmoflon</groupId>
<artifactId>org.cmoflon.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>org.cmoflon.feature</module>
<module>org.cmoflon.ide.core</module>
<module>org.cmoflon.ide.ui</module>
<module>org.cmoflon.releng.target</module>
<module>org.cmoflon.updatesite</module>
</modules>
<properties>
<tycho-version>1.0.0</tycho-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<repositories>
<repository>
<id>oxygen</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/oxygen</url>
</repository>
<!-- We could also use the 'target platform' mechanism. But then we should
split the .target file, which is not supported by Eclipse PDE. (https://wiki.eclipse.org/Tycho/Target_Platform) -->
<repository>
<id>gervarro-eclipse</id>
<layout>p2</layout>
<url>http://gervarro.org/eclipse-utils/integration-2.0.0/</url>
</repository>
<repository>
<id>plantuml</id>
<layout>p2</layout>
<url>http://files.idi.ntnu.no/publish/plantuml/repository/</url>
</repository>
<repository>
<id>emoflon-tool</id>
<layout>p2</layout>
<url>http://emoflon.org/eclipse-plugin/beta/updatesite/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>codehaus-snapshots</id>
<name>disable dead 'Codehaus Snapshots' repository, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=481478</name>
<url>http://nexus.codehaus.org/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<!-- Docu: https://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html -->
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- <useUIHarness>true</useUIHarness> -->
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<target>
<artifact>
<groupId>org.cmoflon</groupId>
<artifactId>org.cmoflon.releng.target</artifactId>
<version>1.0.0-SNAPSHOT</version>
</artifact>
</target>
<environments>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</project>