Commit 9f676085 authored by Alexander Weigl's avatar Alexander Weigl

repairing gitlab-ci

parent 5bd02453
image: key-ant-openjdk-8:latest
cache:
paths:
- .m2/
variables:
MAVEN_OPTS: -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2
MAVEN_OPTS: >-
-Dmaven.repo.local=${CI_PROJECT_DIR}/.m2
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
-Dorg.slf4j.simpleLogger.showDateTime=true
GIT_SSL_NO_VERIFY: "true"
stages:
- setup
- build
- test
- deploy
setup:
script: >
COMPONENTS=keydeps/lib/components/
mvn install:install-file -Dfile=$COMPONENTS/key.core.jar \
-DgroupId=key-project-psdbg \
-DartifactId=key.core \
-Dversion=2.7-SNAPSHOT \
-Dpackaging=jar
mvn install:install-file -Dfile=$COMPONENTS/key.ui.jar \
-DgroupId=key-project-psdbg \
-DartifactId=key.ui \
-Dversion=2.7-SNAPSHOT \
-Dpackaging=jar
mvn install:install-file -Dfile=$COMPONENTS/key.util.jar \
-DgroupId=key-project-psdbg \
-DartifactId=key.util \
-Dversion=2.7-SNAPSHOT \
-Dpackaging=jar
mvn install:install-file -Dfile=$COMPONENTS/../libs/recoderKey.jar\
-DgroupId=key-project-psdbg \
-DartifactId=recoder \
-Dversion=2.7\
-Dpackaging=jar
build:
stage: build
script: "mvn compile -B -T 2"
test:
test:
stage: test
script: "mvn test -B"
deploy:
stage: deploy
script:
- "mvn package site:site -DperformRelease=true -DcreateChecksum=true -DskipTests=true -B"
- "mvn package -DperformRelease=true -DcreateChecksum=true -DskipTests=true -B"
artifacts:
paths:
- target/*jar
......
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
......@@ -10,8 +10,6 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.6" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.projectlombok:lombok:1.16.16" level="project" />
......
......@@ -77,8 +77,6 @@
</distributionManagement>
<build>
<extensions>
<extension>
......@@ -160,6 +158,9 @@
<version>1.12</version>
<configuration>
<licenseName>gpl_v3</licenseName>
<copyrightOwners>
Sarah Grebing, Alexander Weigl
</copyrightOwners>
</configuration>
</plugin>
......@@ -174,6 +175,54 @@
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
<!--
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<mainClass>edu.kit.iti.formal.psdbg.gui.ProofScriptDebugger</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>exe</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<phase>package</phase>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>edu.kit.iti.formal.psdbg.gui.ProofScriptDebugger</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment