Skip to content

Commit

Permalink
infra: Build with other compiler versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed May 31, 2019
1 parent 7069979 commit 438a975
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/travis/common.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
eval "${MATRIX_EVAL}"
echo "CC=$CC"
echo "CXX=$CXX"

# Some colors, use it like following;
# echo -e "Hello ${YELLOW}yellow${NC}"
GRAY='\033[0;30m'
Expand Down Expand Up @@ -27,9 +31,6 @@ function end_section() {
travis_fold end "$1"
}

export CC=gcc-6
export CXX=g++-6

export PREFIX=$HOME/vtr
export CMAKE_PARAMS="-DCMAKE_INSTALL_PREFIX=$PREFIX"
export BUILD_DIR=$HOME/vtr-build
70 changes: 65 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test # For newer GCC
- george-edison55-precise-backports # For cmake
- llvm-toolchain-trusty-7
- llvm-toolchain-precise-3.6
- llvm-toolchain-trusty-6.0
- llvm-toolchain-trusty-7 # For clang-format-7
- llvm-toolchain-trusty-8
- ubuntu-toolchain-r-test
packages:
- autoconf
- automake
Expand All @@ -19,9 +22,6 @@ addons:
- doxygen
- flex
- fontconfig
- gcc-6
- g++-6
- gcc-4.9
- gdb
- git
- gperf
Expand All @@ -42,16 +42,34 @@ addons:
- zip
- qt5-default
- clang-format-7
# All the compilers!
- g++-4.9
- gcc-4.9
- g++-5
- gcc-5
- g++-6
- gcc-6
- g++-8
- gcc-8
- g++-9
- gcc-9
- clang-3.6
- clang-6.0
- clang-8

cache:
ccache: true
directories:
- /home/travis/vtr-build
- /home/travis/vtr

env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

stages:
- Build
- Test
- Build Compatibility

jobs:
include:
Expand Down Expand Up @@ -87,6 +105,48 @@ jobs:
name: "ODIN-II Operators Tests"
script:
- ./run_reg_test.pl odin_reg_operators -j2
- stage: Build Compatibility
name: "GCC 5 (Ubuntu Xenial - 16.04)"
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- stage: Build Compatibility
name: "GCC 6 (Debian Stretch)"
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
script:
- ./.github/travis/build.sh
- stage: Build Compatibility
name: "GCC 8 (Ubuntu Latest)"
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
script:
- ./.github/travis/build.sh
- stage: Build Compatibility
name: "GCC 9 (Latest Release)"
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
script:
- ./.github/travis/build.sh
- stage: Build Compatibility
name: "clang-3.9 (Earliest supported)"
env:
- MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
script:
- ./.github/travis/build.sh
- stage: Build Compatibility
name: "clang-6.0 (Debian + Ubuntu common)"
env:
- MATRIX_EVAL="CC=clang-6 && CXX=clang++-6"
script:
- ./.github/travis/build.sh
- stage: Build Compatibility
name: "clang-8 (Latest Release)"
env:
- MATRIX_EVAL="CC=clang-8 && CXX=clang++-8"
script:
- ./.github/travis/build.sh

before_script:
- source .github/travis/common.sh
Expand Down

0 comments on commit 438a975

Please sign in to comment.