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

5
travis/build-helper.sh

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

2
travis/generate_travis.py

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

3
travis/install_osx.sh

@ -45,9 +45,8 @@ install_brew_package cmake
case "${COMPILER}" in case "${COMPILER}" in
gcc) install_brew_package gcc ;; gcc) install_brew_package gcc ;;
gcc-6) install_brew_package gcc@6 ;; 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;; 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 ;; *) echo "Compiler not supported: ${COMPILER}. See travis/install_osx.sh"; exit 1 ;;
esac esac
travis_fold end brew_install_util travis_fold end brew_install_util

Loading…
Cancel
Save