Browse Source

apple-clang was not recognized in travis

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
ba9534da0a
  1. 48
      .travis.yml
  2. 5
      travis/build-helper.sh
  3. 2
      travis/generate_travis.py
  4. 3
      travis/install_osx.sh

48
.travis.yml

@ -42,8 +42,8 @@ jobs:
# osx
- stage: Build (1st run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultDebug COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang STL=libc++
install:
- rm -rf build
- travis/install_osx.sh
@ -53,8 +53,8 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (1st run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultRelease COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang STL=libc++
install:
- rm -rf build
- travis/install_osx.sh
@ -97,8 +97,8 @@ jobs:
# osx
- stage: Build (2nd run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultDebug COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -107,8 +107,8 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (2nd run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultRelease COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -148,8 +148,8 @@ jobs:
# osx
- stage: Build (3rd run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultDebug COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -158,8 +158,8 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (3rd run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultRelease COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -199,8 +199,8 @@ jobs:
# osx
- stage: Build (4th run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultDebug COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -209,8 +209,8 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (4th run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultRelease COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -250,8 +250,8 @@ jobs:
# osx
- stage: Build (5th run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultDebug COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -260,8 +260,8 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (5th run)
os: osx
compiler: apple-clang
env: CONFIG=DefaultRelease COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -301,8 +301,8 @@ jobs:
# osx
- stage: Test all
os: osx
compiler: apple-clang
env: CONFIG=DefaultDebug COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:
@ -311,8 +311,8 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Test all
os: osx
compiler: apple-clang
env: CONFIG=DefaultRelease COMPILER=apple-clang STL=libc++
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang STL=libc++
install:
- travis/install_osx.sh
script:

5
travis/build-helper.sh

@ -95,11 +95,6 @@ clang)
export CXX=clang++
;;
apple-clang)
export CC=clang
export CXX=clang++
;;
*)
echo "Unrecognized value of COMPILER: $COMPILER"
exit 1

2
travis/generate_travis.py

@ -9,7 +9,7 @@ configs_linux = [
# Configurations for Mac
configs_mac = [
# OS, compiler
("osx", "apple-clang", ""),
("osx", "clang", ""),
]
# Build types

3
travis/install_osx.sh

@ -45,9 +45,8 @@ install_brew_package cmake
case "${COMPILER}" in
gcc) install_brew_package gcc ;;
gcc-6) install_brew_package gcc@6 ;;
clang) install_brew_package llvm --with-clang --with-libcxx;;
clang) ;;
clang-4) install_brew_package llvm@4 --with-clang --with-libcxx;;
apple-clang) ;;
*) echo "Compiler not supported: ${COMPILER}. See travis/install_osx.sh"; exit 1 ;;
esac
travis_fold end brew_install_util
Loading…
Cancel
Save