Travis: Use POSIX Shell syntax for `if`-statements
@@ -210,11 +210,11 @@ matrix:
before_install:
- |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
rvm install 2.5.1
rvm use 2.5.1
gem install test-unit --no-document
- if [[ "$CC" == "gcc" ]]; then
+ if [ "$CC" = 'gcc' ]; then
brew upgrade gcc@9
export CC=gcc-9
export CXX=g++-9
@@ -224,9 +224,9 @@ before_install:
brew services start dbus
fi
- |
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- [[ -n "$CC_COMPILER" ]] && export CC="$CC_COMPILER"
- [[ -n "$CXX_COMPILER" ]] && export CXX="$CXX_COMPILER"
+ if [ "$TRAVIS_OS_NAME" = 'linux' ]; then
+ [ -n "$CC_COMPILER" ] && export CC="$CC_COMPILER"
+ [ -n "$CXX_COMPILER" ] && export CXX="$CXX_COMPILER"
sudo apt-get -qq update
sudo apt-get install ninja-build
sudo apt-get install devscripts # contains `checkbashisms`
@@ -248,7 +248,7 @@ before_install:
before_script:
- |
cd $TRAVIS_BUILD_DIR
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
+ if [ "$TRAVIS_OS_NAME" = 'linux' ]; then
CMAKE_OPT+=(-DCMAKE_INSTALL_PREFIX="$PWD/install")
export PATH=$PATH:"$PWD/install/bin"
export LD_LIBRARY_PATH="$PWD/install/lib"
