mirror of
https://github.com/google/brotli.git
synced 2024-11-22 19:50:06 +00:00
d03c38da7f
* Blacklist PGI from using conformant array parameters. There is a bug in pgcc with conformant array parameters where the length argument is a pointer which triggers a compiler error (PGC-S-0094, to be specific). The issue has been reported to PGI and is being tracked internally as TPR 23778. For more information, see https://www.pgroup.com/userforum/viewtopic.php?t=5501 * travis: Add PGI Community Edition build. For details on the installation script, see https://github.com/nemequ/pgi-travis
66 lines
1.4 KiB
Bash
Executable File
66 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
case "$1" in
|
|
"install")
|
|
case "${TRAVIS_OS_NAME}" in
|
|
"osx")
|
|
brew update
|
|
brew install binutils
|
|
|
|
case "${CC}" in
|
|
"gcc-"*)
|
|
which ${CC} || brew install homebrew/versions/gcc$(echo "${CC#*-}" | sed 's/\.//')
|
|
;;
|
|
esac
|
|
|
|
case "${BUILD_SYSTEM}" in
|
|
"python")
|
|
source terryfy/travis_tools.sh
|
|
get_python_environment $INSTALL_TYPE $PYTHON_VERSION venv
|
|
pip install --upgrade wheel
|
|
;;
|
|
esac
|
|
;;
|
|
"linux")
|
|
case "${CC}" in
|
|
"pgcc")
|
|
wget -q -O /dev/stdout 'https://raw.githubusercontent.com/nemequ/pgi-travis/master/install-pgi.sh' | /bin/sh
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
"script")
|
|
case "${BUILD_SYSTEM}" in
|
|
"cmake")
|
|
mkdir builddir && cd builddir
|
|
CMAKE_FLAGS=
|
|
if [ "${CROSS_COMPILE}" = "yes" ]; then
|
|
CMAKE_FLAGS="-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RC_COMPILER=${RC_COMPILER}"
|
|
fi
|
|
cmake ${CMAKE_FLAGS} -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DENABLE_SANITIZER="${SANITIZER}" -DCMAKE_C_FLAGS="${CFLAGS}" ..
|
|
make VERBOSE=1
|
|
ctest -V
|
|
;;
|
|
"python")
|
|
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
|
|
source venv/bin/activate
|
|
fi
|
|
python setup.py build test
|
|
;;
|
|
esac
|
|
;;
|
|
"after_success")
|
|
case "${BUILD_SYSTEM}" in
|
|
"python")
|
|
case "${TRAVIS_OS_NAME}" in
|
|
"osx")
|
|
source venv/bin/activate
|
|
pip wheel -w dist .
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|