mirror of https://github.com/apache/nifi.git
NIFI-1657 - Configure travis-ci to run mvn verify in ja_JP, fr_FR, and pt_BR
This closes #1480.
This commit is contained in:
parent
5cfba6ace3
commit
1e5570d9b0
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright ownership.
|
||||||
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
|
# (the "License"); you may not use this file except in compliance with
|
||||||
|
# the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# Replace variables seems to be the only option to pass proper values to surefire
|
||||||
|
# Note: The reason the sed is done as part of script is to ensure the pom hack
|
||||||
|
# won't affect the 'clean install' above
|
||||||
|
set -x
|
||||||
|
if [ "$USER_LANGUAGE" != "default" ]; then
|
||||||
|
sed -i.bak -e "s|<maven\.surefire\.arguments/>|<maven\.surefire\.arguments>-Duser.language=${USER_LANGUAGE} -Duser.region=${USER_REGION}</maven\.surefire\.arguments>|" pom.xml
|
||||||
|
diff pom.xml pom.xml.bak
|
||||||
|
rm pom.xml.bak
|
||||||
|
fi
|
14
.travis.yml
14
.travis.yml
|
@ -15,6 +15,13 @@
|
||||||
|
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
|
env:
|
||||||
|
- USER_LANGUAGE=en USER_REGION=US'
|
||||||
|
- USER_LANGUAGE=fr USER_REGION=FR'
|
||||||
|
- USER_LANGUAGE=ja USER_REGION=JP'
|
||||||
|
- USER_LANGUAGE=pt USER_REGION=BR'
|
||||||
|
- USER_LANGUAGE=default USER_REGION=default
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
|
||||||
|
@ -35,10 +42,15 @@ before_install:
|
||||||
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
|
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
|
||||||
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
|
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
|
||||||
- echo "MAVEN_OPTS='-Xmx2g -XX:+UseG1GC'" > ~/.mavenrc
|
- echo "MAVEN_OPTS='-Xmx2g -XX:+UseG1GC'" > ~/.mavenrc
|
||||||
- mvn apache-rat:check
|
- cat ~/.mavenrc
|
||||||
|
- mvn -q apache-rat:check
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- mvn -q -T 2C -DskipTests=true -Pdir-only clean install
|
- mvn -q -T 2C -DskipTests=true -Pdir-only clean install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
# Replace variables seems to be the only option to pass proper values to surefire
|
||||||
|
# Note: The reason the sed is done as part of script is to ensure the pom hack
|
||||||
|
# won't affect the 'clean install' above
|
||||||
|
- bash .travis.sh
|
||||||
- mvn -Pcontrib-check verify
|
- mvn -Pcontrib-check verify
|
||||||
|
|
3
pom.xml
3
pom.xml
|
@ -87,6 +87,7 @@ language governing permissions and limitations under the License. -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<maven.min-version>3.1.0</maven.min-version>
|
<maven.min-version>3.1.0</maven.min-version>
|
||||||
|
<maven.surefire.arguments/>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<inceptionYear>2014</inceptionYear>
|
<inceptionYear>2014</inceptionYear>
|
||||||
|
@ -1503,7 +1504,7 @@ language governing permissions and limitations under the License. -->
|
||||||
<include>**/*Spec.class</include>
|
<include>**/*Spec.class</include>
|
||||||
</includes>
|
</includes>
|
||||||
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
<argLine combine.children="append">-Xmx1G -Djava.net.preferIPv4Stack=true</argLine>
|
<argLine combine.children="append">-Xmx1G -Djava.net.preferIPv4Stack=true ${maven.surefire.arguments}</argLine>
|
||||||
</configuration>
|
</configuration>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue