#
# file: .travis.yml
#
# author: Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

# use "trusty", container-based infrastructure
dist: trusty
sudo: false

# texinfo is needed to build bleeding-edge-toolchain
addons:
    apt:
        packages:
            - ninja-build
            - texinfo
            - texlive

# use minimal environment
language: generic

matrix:
    include:
        - env: SUBSTAGE="build 5"
        - env: SUBSTAGE="build 6"
        - env: SUBSTAGE="build 7"
        - python: '2.7'
          env: SUBSTAGE="pydts --quiet"
        - python: '3.6'
          env: SUBSTAGE="pydts --quiet"
        - env: SUBSTAGE="unit-test"

before_install:
    - "export PATH=${HOME}/.local/bin:${PATH}"

install:
    - "./scripts/travis-ci.sh install ${SUBSTAGE}"

script:
    - "./scripts/travis-ci.sh script ${SUBSTAGE}"

#
# file: .travis.yml
#
# author: Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

# use "trusty", container-based infrastructure
dist: trusty
sudo: false

# texinfo is needed to build bleeding-edge-toolchain
addons:
    apt:
        sources:
            - ubuntu-toolchain-r-test
        packages:
            - gcc-7
            - g++-7
            - ninja-build
            - texinfo
            - texlive

# use minimal environment
language: generic

matrix:
    include:
        - env: SUBSTAGE="build 5"
        - env: SUBSTAGE="build 6"
        - env: SUBSTAGE="build 7"
        - python: '2.7'
          env: SUBSTAGE="pydts --quiet"
        - python: '3.6'
          env: SUBSTAGE="pydts --quiet"
        - env: COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7 SUBSTAGE="unit-test"

before_install:
    - "export PATH=${HOME}/.local/bin:${PATH}"

install:
    - "./scripts/travis-ci.sh install ${SUBSTAGE}"

script:
    - "./scripts/travis-ci.sh script ${SUBSTAGE}"

Use GCC 7 for unit-test in Travis-CI
Use GCC 7 for unit-test in Travis-CI