Skip to content

Commit

Permalink
ICU-20089 Add ICU4C Docs build to Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aheninger committed Jan 24, 2019
1 parent 9b30304 commit f0d3f25
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
34 changes: 31 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
matrix:
include:

# 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 )


- name: "j"
language: java
env: BUILD=ICU4J
Expand Down Expand Up @@ -51,7 +74,9 @@ matrix:
# a Container on EC2 or Packet. Asan builds of ICU fail otherwise.
- name: "c: linux asan"
language: cpp
env: BUILD=ICU4C_CLANG_ASAN
env:
- CPPFLAGS="-fsanitize=address"
- LDFLAGS="-fsanitize=address"
os: linux
dist: trusty
sudo: true
Expand All @@ -63,16 +88,19 @@ matrix:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
before_script:
- cd icu4c/source
- ./runConfigureICU --enable-debug --disable-release Linux --disable-renaming
- make -j2
script:
- cd icu4c/source && CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./runConfigureICU --enable-debug --disable-release Linux --disable-renaming && make -j2 check
- make -j2 check


# Clang Linux with thread sanitizer.
#
- name: "c: linux tsan"
language: cpp
env:
- BUILD=ICU4C_CLANG_THREAD_SAN
- INTLTEST_OPTS="utility/MultithreadTest rbbi/RBBIMonkeyTest format/CalendarLimitTest"
- CPPFLAGS="-fsanitize=thread"
- LDFLAGS=-fsanitize=thread
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/common/unicode/uvernum.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
* \def U_ICU_ENTRY_POINT_RENAME
* @stable ICU 4.2
*/
/**
/*
* Disable the version suffix. Use the custom suffix if exists.
* \def U_DISABLE_VERSION_SUFFIX
* @internal
Expand Down

0 comments on commit f0d3f25

Please sign in to comment.