blob: b15d4b3b87f5028e7bdee5da7187f92e362caca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
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
echo "------"
du -hs ${WERCKER_CACHE_DIR}
echo "------"
du -hs ${WERCKER_CACHE_DIR}/* | sort -h
- 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
# Build Checkstyle
- script:
name: Build Checkstyle
code: >
mvn clean install -Pno-validations
# NoErrorTest - Postgresql JDBC Driver (oraclejdk8)
- script:
name: NoErrorTest - Postgresql JDBC Driver
code: >
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/pgjdbc/pgjdbc.git && cd pgjdbc/pgjdbc
&& mvn compile checkstyle:check -Dcheckstyle.version=${CS_POM_VERSION}
&& cd ../../
&& rm -rf pgjdbc
# NoErrorTest - Orekit (oraclejdk8)
- script:
name: NoErrorTest - Orekit
code: >
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 && cd ../
&& git clone https://github.com/CS-SI/Orekit.git && cd Orekit
&& git checkout 82f2ac9fbaabb4a8e07e4d6643c0d23845cbab42
&& mvn compile checkstyle:check -Dorekit.checkstyle.version=${CS_POM_VERSION}
&& cd ../
&& rm -rf hipparchus Orekit
# NoErrorTest - XWiki (oraclejdk8)
- script:
name: NoErrorTest - XWiki
code: >
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}
&& cd ../../
&& rm -rf xwiki-commons
# NoErrorTest - Apache Apex (oraclejdk8)
- script:
name: NoErrorTest - Apache Apex
code: >
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}
&& cd ../
&& rm -rf incubator-apex-core
# NoErrorTest - Hibernate Search (oraclejdk8)
- script:
name: NoErrorTest - Hibernate Search
code: >
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/hibernate/hibernate-search.git && cd hibernate-search
&& mvn -s settings-example.xml -B -q clean install -DskipTests=true
&& mvn -s settings-example.xml checkstyle:check -Dpuppycrawl.checkstyle.version=${CS_POM_VERSION}
&& cd ../
&& rm -rf hibernate-search
# NoErrorTest - Hibernate Search (oraclejdk8)
- script:
name: NoErrorTest - Hibernate Search
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/hibernate/hibernate-search.git && cd hibernate-search
&& mvn -s settings-example.xml -B -q clean install -DskipTests=true
&& mvn -s settings-example.xml checkstyle:check -Dpuppycrawl.checkstyle.version=${CS_POM_VERSION}
# NoErrorTest - HtmlUnit (oraclejdk8)
- script:
name: NoErrorTest - HtmlUnit
code: >
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}
&& echo "checkouting project sources ..."
&& svn -q export https://svn.code.sf.net/p/htmlunit/code/trunk/htmlunit@13543 htmlunit
&& cd htmlunit
&& echo "Running checkstyle validation ..."
&& mvn compile checkstyle:check -Dcheckstyle.version=${CS_POM_VERSION}
&& cd ../
&& rm -rf htmlunit
# NoExceptiontest - Apache Struts (oraclejdk8)
- script:
name: NoExceptiontest - Apache Struts
code: >
git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester
&& groovy ./launch.groovy --listOfProjects projects-for-wercker.properties --checkstyleCfg checks-nonjavadoc-error.xml
&& cd ../../
&& rm -rf contribution
# Cleanup
- script:
name: Cleanup maven local repo
code: |-
find ${WERCKER_CACHE_DIR} -type d -name "*SNAPSHOT" -ls -exec rm -rf {} +
echo "------"
du -hs ${WERCKER_CACHE_DIR}
echo "------"
du -hs ${WERCKER_CACHE_DIR}/* | sort -h
echo "------"
du -hs * | sort -h
|