Commit a1debfef authored by Matija Obreza's avatar Matija Obreza
Browse files

CI updated

parent 299dbcda
...@@ -2,30 +2,33 @@ stages: ...@@ -2,30 +2,33 @@ stages:
- build - build
run tests in branches: run tests in branches:
stage: build stage: build
image: maven:3-jdk-8 image: maven:3-jdk-8
script: script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B - MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B -U
except: except:
- master - master
- tags - tags
publish maven snapshot artifacts: publish maven snapshot artifacts:
stage: build stage: build
image: maven:3-jdk-8 image: maven:3-jdk-8
script: before_script:
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import - echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys - gpg --list-keys
script:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U - mvn clean deploy --settings .ci-maven-settings.xml -B -U
only: only:
- master - master
publish maven artifacts: publish maven artifacts:
stage: build stage: build
image: maven:3-jdk-8 image: maven:3-jdk-8
script: before_script:
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import - echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys - gpg --list-keys
- mvn clean deploy --settings .ci-maven-settings.xml -B -U -Prelease - export GPG_TTY=$(tty) # gpg: signing failed: Inappropriate ioctl for device
script:
- mvn -P release clean deploy --settings .ci-maven-settings.xml -B -U
only: only:
- tags - /^geo\-tools\-/
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Copyright 2016 Global Crop Diversity Trust Copyright 2016 Global Crop Diversity Trust
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
<module>genesys-geotools</module> <module>genesys-geotools</module>
<module>geotools-cli</module> <module>geotools-cli</module>
</modules> </modules>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.target>1.8</jdk.target> <jdk.target>1.8</jdk.target>
<jdk.source>1.8</jdk.source> <jdk.source>1.8</jdk.source>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
</properties> </properties>
<build> <build>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<!-- first check to see if you have locally modified files, and will <!-- first check to see if you have locally modified files, and will
fail if there are any. --> fail if there are any. -->
<doCheck>false</doCheck> <doCheck>false</doCheck>
<doUpdate>false</doUpdate> <doUpdate>false</doUpdate>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles> <profiles>
<profile> <profile>
<id>release</id> <id>release</id>
......
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