blob: b3764535ab5274a52e5dfb56207f2630515206f4 [file] [log] [blame]
box: maven:3.3.9-jdk-8
build:
steps:
- script:
name: setup mvn local repo
code: |-
export MAVEN_OPTS="-Dmaven.repo.local=${WERCKER_CACHE_DIR}"
mvn -version
- script:
name: install groovy
code: |-
if [ ! -d ${WERCKER_CACHE_DIR}/groovy ];
then wget -O ${WERCKER_CACHE_DIR}/groovy.zip https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.7.zip;
unzip ${WERCKER_CACHE_DIR}/groovy.zip -d ${WERCKER_CACHE_DIR};
mv ${WERCKER_CACHE_DIR}/groovy-2.4.7 ${WERCKER_CACHE_DIR}/groovy
fi
export GROOVY_HOME=${WERCKER_CACHE_DIR}/groovy
PATH=$GROOVY_HOME/bin:$PATH
groovy -v
# unit tests (oraclejdk8)
- script:
name: tests
code: |-
mvn clean integration-test failsafe:verify
# NoErrorTest - Orekit (oraclejdk8)
- script:
name: NoErrorTest - Orekit
code: >
mvn clean install -Pno-validations
&& CS_POM_VERSION=$(mvn -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
&& echo CS_version: ${CS_POM_VERSION}
&& git clone https://github.com/Hipparchus-Math/hipparchus.git && cd hipparchus && mvn clean install -DskipTests
&& git clone https://github.com/CS-SI/Orekit.git && cd Orekit
&& git checkout 82f2ac9fbaabb4a8e07e4d6643c0d23845cbab42
&& mvn compile checkstyle:check -Dorekit.checkstyle.version=${CS_POM_VERSION}
# NoErrorTest - XWiki (oraclejdk8)
- script:
name: NoErrorTest - XWiki
code: >
mvn clean install -Pno-validations
&& CS_POM_VERSION=$(mvn -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
&& echo CS_version: ${CS_POM_VERSION}
&& git clone https://github.com/xwiki/xwiki-commons/
&& cd xwiki-commons/xwiki-commons-core && git checkout xwiki-commons-8.2-milestone-1
&& mvn install -DskipTests -Dxwiki.clirr.skip=true checkstyle:check -Dcheckstyle.version=${CS_POM_VERSION}
# NoErrorTest - Apache Apex (oraclejdk8)
- script:
name: NoErrorTest - Apache Apex
code: >
mvn clean install -Pno-validations
&& CS_POM_VERSION=$(mvn -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
&& echo CS_version: ${CS_POM_VERSION}
&& git clone https://github.com/apache/incubator-apex-core/ && cd incubator-apex-core
&& mvn compile checkstyle:check -Dcheckstyle.version=${CS_POM_VERSION}
# NoExceptiontest - Apache Struts (oraclejdk8)
- script:
name: NoExceptiontest - Apache Struts
code: >
rm -rf contribution
&& git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester
&& cd ../../ && mvn clean install -Pno-validations
&& cd contribution/checkstyle-tester
&& groovy ./launch.groovy projects-for-wercker.properties checks-nonjavadoc-error.xml