tests: Add python 3.7 to Travis CI (#8778)

* Test Spack on Python 3.7 as part of Travis CI
* Currently using xenial to pull-in python 3.7
    * As xenial is not officially supported yet, Travis tolerates failures on it.
This commit is contained in:
Massimiliano Culpo 2018-07-24 08:07:36 +02:00 committed by Todd Gamblin
parent e2e8108dc4
commit 6ba1c82858

View File

@ -11,6 +11,13 @@ branches:
#============================================================================= #=============================================================================
# Build matrix # Build matrix
#============================================================================= #=============================================================================
# Adding the keyword dist to permit an `allow_failures` section
# under `matrix.include`. More information here:
#
# https://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-to-Fail
dist: trusty
jobs: jobs:
fast_finish: true fast_finish: true
include: include:
@ -44,6 +51,12 @@ jobs:
os: linux os: linux
language: python language: python
env: [ TEST_SUITE=unit, COVERAGE=true ] env: [ TEST_SUITE=unit, COVERAGE=true ]
- python: '3.7'
os: linux
dist: xenial
sudo: true
language: python
env: [ TEST_SUITE=unit, COVERAGE=true ]
- python: '3.6' - python: '3.6'
os: linux os: linux
language: python language: python
@ -93,6 +106,8 @@ jobs:
os: linux os: linux
language: python language: python
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=mpich' ] env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=mpich' ]
allow_failures:
- dist: xenial
stages: stages:
- 'style checks' - 'style checks'