blob: ab00146d3474073bf03dabbee860523f10651905 [file] [log] [blame]
# 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.
language: java
env:
- USER_LANGUAGE=en USER_REGION=US'
- USER_LANGUAGE=fr USER_REGION=FR'
- USER_LANGUAGE=ja USER_REGION=JP'
os: linux
jdk:
- oraclejdk8
# Caches mvn repository in order to speed up builds
cache:
directories:
- $HOME/.m2
- $HOME/.npm
before_cache:
# Remove nifi repo again to save travis from caching it
- rm -rf $HOME/.m2/repository/org/apache/nifi-registry/
addons:
chrome: stable
# before_install aids in setting up the Travis-CI environment
# 1. Configures pre-installed Chrome on Travis CI to be used in “headless” mode
before_install:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
# before_script aids in setting up the Travis-CI environment
# 1. simulate an `X` server on Travis CI for karma tests that require a GUI
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
# skip the installation step entirely
install: true
#build commands
script:
- mvn -T 2C clean install -Pintegration-tests,contrib-check,jsUnitTests | grep -v -F -f .travis-output-filters && exit ${PIPESTATUS[0]}