2018-07-18 18:46:23 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-11-07 23:12:13 +00:00
|
|
|
|
|
|
|
# ICU4C Docs Build
|
|
|
|
# TODO: publish the latest built docs from master on GitHub pages.
|
|
|
|
# See https://gist.github.com/vidavidorra/548ffbcdae99d752da02 for ideas.
|
|
|
|
- name: "c: docs"
|
|
|
|
dist: xenial
|
|
|
|
language: cpp
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
packages:
|
|
|
|
- doxygen
|
|
|
|
before_script:
|
|
|
|
- cd icu4c/source
|
|
|
|
- ./runConfigureICU Linux --disable-renaming
|
|
|
|
script:
|
|
|
|
# fail if 'warning:' appears in doxygen's output, but ignore warnings from file Doxyfile.
|
|
|
|
# The Doxygen version from Travis is down-rev, and doesn't recognize some options
|
|
|
|
# in the Doxyfile config file.
|
|
|
|
# Regex note: (?! ... ) is a negative lookahead. Succeed if the pattern is not present.
|
|
|
|
- set +o pipefail && make doc 2>&1 | tee doxygen.log && ( ! grep -P 'warning:(?! .* file Doxyfile)' doxygen.log )
|
|
|
|
|
|
|
|
|
2018-09-20 21:20:32 +00:00
|
|
|
- name: "j"
|
|
|
|
language: java
|
2019-08-08 23:08:34 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- ant
|
|
|
|
- ant-optional
|
2018-07-18 18:46:23 +00:00
|
|
|
env: BUILD=ICU4J
|
2018-09-07 23:01:46 +00:00
|
|
|
before_script:
|
|
|
|
- cd icu4j
|
|
|
|
- ant init
|
|
|
|
script:
|
|
|
|
- ant check
|
2018-07-18 18:46:23 +00:00
|
|
|
after_failure:
|
|
|
|
- cat `find out/junit-results -name "*.txt" -exec grep -l FAILED {} \;`
|
|
|
|
|
2020-03-20 21:41:01 +00:00
|
|
|
- name: "c: linux gcc 8 Wextra"
|
|
|
|
dist: bionic
|
|
|
|
language: cpp
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- g++-8
|
|
|
|
env: PREFIX=/tmp/icu-prefix CC=gcc-8 CXX=g++-8 CXXFLAGS="-Wextra"
|
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- ../icu4c/source/runConfigureICU Linux --disable-debug --enable-release --disable-layoutex --prefix="${PREFIX}" || (tail -100 config.log ; false)
|
|
|
|
- make -j2
|
|
|
|
script:
|
|
|
|
- make -j2 check
|
|
|
|
- make install
|
|
|
|
- PATH="${PREFIX}/bin:$PATH" make -C test/hdrtst check
|
|
|
|
|
2018-11-05 19:16:41 +00:00
|
|
|
# gcc debug build.
|
|
|
|
# Includes dependency checker.
|
|
|
|
# Note - the dependency checker needs to be run on both a debug and an optimized build.
|
|
|
|
# This one (gcc) for debug, and linux clang (below) for optimized.
|
2019-02-06 01:24:29 +00:00
|
|
|
#
|
|
|
|
# Test both out-of-source and in-source builds. This one (gcc) for out-of-source,
|
|
|
|
# and linux clang (below) for in-source.
|
2019-03-30 06:59:46 +00:00
|
|
|
#
|
|
|
|
# Invokes test/hdrtst to check public headers compliance.
|
2019-02-06 01:24:29 +00:00
|
|
|
|
2020-05-03 19:41:08 +00:00
|
|
|
- name: "c: linux gcc (debug)"
|
2019-06-01 00:46:49 +00:00
|
|
|
dist: xenial
|
2018-09-20 21:20:32 +00:00
|
|
|
language: cpp
|
2018-07-18 18:46:23 +00:00
|
|
|
compiler: gcc
|
2019-03-30 06:59:46 +00:00
|
|
|
env: PREFIX=/tmp/icu-prefix
|
2018-11-05 19:16:41 +00:00
|
|
|
before_script:
|
2019-02-06 01:24:29 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-06-07 21:05:14 +00:00
|
|
|
- ../icu4c/source/runConfigureICU --enable-debug --disable-release Linux --prefix="${PREFIX}" --enable-tracing
|
2018-11-05 19:16:41 +00:00
|
|
|
- make -j2
|
|
|
|
script:
|
|
|
|
- make -j2 check
|
2019-02-06 01:24:29 +00:00
|
|
|
- ( cd ../icu4c/source/test/depstest && ./depstest.py ../../../../build/ )
|
2019-03-30 06:59:46 +00:00
|
|
|
- make install
|
|
|
|
- PATH="${PREFIX}/bin:$PATH" make -C test/hdrtst check
|
2018-07-18 18:46:23 +00:00
|
|
|
|
2019-05-01 21:38:27 +00:00
|
|
|
# clang release build with some options to enforce useful constraints.
|
2019-09-12 00:25:34 +00:00
|
|
|
# Includes dependency checker on an in-source, optimized build.
|
|
|
|
# Includes checking @draft etc. API tags vs. ifndef guards like
|
|
|
|
# U_HIDE_DRAFT_API and U_FORCE_HIDE_DRAFT_API.
|
|
|
|
# (FORCE guards make this tool pass but won't compile to working code.
|
|
|
|
# See the testtagsguards.sh script for details.)
|
2018-09-20 21:20:32 +00:00
|
|
|
- name: "c: linux clang"
|
2019-06-01 00:46:49 +00:00
|
|
|
dist: xenial
|
2018-09-20 21:20:32 +00:00
|
|
|
language: cpp
|
2019-05-01 21:38:27 +00:00
|
|
|
env:
|
|
|
|
- CPPFLAGS="-DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1"
|
|
|
|
- CFLAGS="-Wimplicit-fallthrough"
|
|
|
|
- CXXFLAGS="-Wimplicit-fallthrough"
|
2018-09-20 21:20:32 +00:00
|
|
|
compiler: clang
|
2020-03-14 01:32:38 +00:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get -y install doxygen # for make dist
|
2018-11-05 19:16:41 +00:00
|
|
|
before_script:
|
|
|
|
- cd icu4c/source
|
|
|
|
- ./runConfigureICU Linux
|
|
|
|
- make -j2
|
|
|
|
script:
|
|
|
|
- make -j2 check
|
2019-01-18 00:53:46 +00:00
|
|
|
- ( cd test/depstest && python3 depstest.py ../../../source/ )
|
2019-09-12 00:25:34 +00:00
|
|
|
- ( cd .. && source/test/hdrtst/testtagsguards.sh )
|
2020-03-14 01:32:38 +00:00
|
|
|
- make dist # not sure if this is -j safe everywhere.
|
2018-09-20 21:20:32 +00:00
|
|
|
|
|
|
|
- name: "c: osx clang"
|
|
|
|
language: cpp
|
2018-07-18 18:46:23 +00:00
|
|
|
env: BUILD=MACINTOSH
|
|
|
|
os: osx
|
|
|
|
compiler: clang
|
2018-12-08 01:22:10 +00:00
|
|
|
# Use the macOS target to test Python 2 in data build script.
|
|
|
|
# TODO(ICU-20301): Change this back to the default Python version 3.
|
|
|
|
script: cd icu4c/source && PYTHON=python2 ./runConfigureICU MacOSX && make -j2 check
|
2018-07-18 18:46:23 +00:00
|
|
|
|
2020-05-03 19:41:08 +00:00
|
|
|
# out of source gcc 8 build with c++14, runs icuinfo
|
|
|
|
- name: "c: linux gcc 8 c++14"
|
|
|
|
dist: bionic
|
|
|
|
language: cpp
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- g++-8
|
|
|
|
env: PREFIX=/tmp/icu-prefix CC=gcc-8 CXX=g++-8 CXXFLAGS="-std=c++14"
|
|
|
|
before_script:
|
|
|
|
- mkdir build && cd build
|
|
|
|
- ../icu4c/source/runConfigureICU Linux --disable-layout --disable-layoutex --prefix="${PREFIX}"
|
|
|
|
- make -j2
|
|
|
|
script:
|
|
|
|
- make -j2 check && make install
|
|
|
|
- cd "${PREFIX}/bin" && LD_LIBRARY_PATH=../lib ./icuinfo
|
|
|
|
|
2018-08-21 19:56:10 +00:00
|
|
|
# Clang Linux with address sanitizer.
|
|
|
|
# Note - the 'sudo: true' option forces Travis to use a Virtual machine on GCE instead of
|
|
|
|
# a Container on EC2 or Packet. Asan builds of ICU fail otherwise.
|
2020-05-03 19:41:08 +00:00
|
|
|
- name: "c: linux asan (debug)"
|
2018-09-20 21:20:32 +00:00
|
|
|
language: cpp
|
2018-11-07 23:12:13 +00:00
|
|
|
env:
|
|
|
|
- CPPFLAGS="-fsanitize=address"
|
|
|
|
- LDFLAGS="-fsanitize=address"
|
2018-07-18 18:46:23 +00:00
|
|
|
os: linux
|
2019-06-01 00:46:49 +00:00
|
|
|
dist: xenial
|
2018-08-21 19:56:10 +00:00
|
|
|
sudo: true
|
2018-07-18 18:46:23 +00:00
|
|
|
compiler: clang
|
2018-11-07 23:12:13 +00:00
|
|
|
before_script:
|
|
|
|
- cd icu4c/source
|
2019-06-07 21:05:14 +00:00
|
|
|
- ./runConfigureICU --enable-debug --disable-release Linux --disable-renaming --enable-tracing
|
2018-11-07 23:12:13 +00:00
|
|
|
- make -j2
|
2018-07-18 18:46:23 +00:00
|
|
|
script:
|
2018-11-07 23:12:13 +00:00
|
|
|
- make -j2 check
|
2018-08-25 00:45:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Clang Linux with thread sanitizer.
|
|
|
|
#
|
2020-05-03 19:41:08 +00:00
|
|
|
- name: "c: linux tsan (debug)"
|
2018-09-20 21:20:32 +00:00
|
|
|
language: cpp
|
2018-10-06 03:24:45 +00:00
|
|
|
env:
|
2019-02-13 02:32:08 +00:00
|
|
|
- INTLTEST_OPTS="utility/MultithreadTest"
|
2018-10-06 03:24:45 +00:00
|
|
|
- CPPFLAGS="-fsanitize=thread"
|
|
|
|
- LDFLAGS=-fsanitize=thread
|
2018-08-25 00:45:22 +00:00
|
|
|
os: linux
|
2019-06-01 00:46:49 +00:00
|
|
|
dist: xenial
|
2018-08-25 00:45:22 +00:00
|
|
|
sudo: true
|
|
|
|
compiler: clang
|
|
|
|
script:
|
2019-06-07 21:05:14 +00:00
|
|
|
- cd icu4c/source
|
|
|
|
- ./runConfigureICU --enable-debug --disable-release Linux --disable-renaming
|
|
|
|
- make -j2
|
|
|
|
- make -j2 -C test
|
|
|
|
- make -j2 -C test/intltest check
|
2018-09-20 21:20:32 +00:00
|
|
|
|
|
|
|
# copyright scan / future linter
|
2018-09-20 23:09:05 +00:00
|
|
|
- name: "lint"
|
2018-09-20 21:20:32 +00:00
|
|
|
script:
|
|
|
|
- perl tools/scripts/cpysearch/cpyscan.pl
|
2019-09-03 20:32:03 +00:00
|
|
|
|
|
|
|
- name: "j: icu4c release tools"
|
|
|
|
language: "java"
|
|
|
|
script:
|
|
|
|
- mvn -f tools/release/java/pom.xml package dependency:analyze
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.m2
|
2020-09-11 21:59:35 +00:00
|
|
|
|
|
|
|
# Check compilation of internal headers.
|
|
|
|
- name: "internal header compilation check"
|
|
|
|
language: cpp
|
|
|
|
os: linux
|
|
|
|
before_script:
|
|
|
|
- cd icu4c/source
|
|
|
|
script:
|
|
|
|
- test/hdrtst/testinternalheaders.sh
|
2020-09-17 21:55:00 +00:00
|
|
|
|
|
|
|
# Check source files for valid UTF-8 and for absence of BOM.
|
|
|
|
- name: "UTF-8 and BOM check"
|
|
|
|
os: linux
|
|
|
|
script:
|
|
|
|
- tools/scripts/icu-file-utf8-check.py
|