Skip to content

Commit

Permalink
Test also with Python 3 in macOS (#602)
Browse files Browse the repository at this point in the history
* Test also with Python 3 in macOS [skip appveyor]

* Remove redundant before_install [skip appveyor]

Python is installed via addons.apt.packages now so there is no need
for explicit apt-get.
  • Loading branch information
tkf authored and stevengj committed Oct 23, 2018
1 parent ad972ea commit b9cca81
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: julia
os:
- linux
- osx
julia:
- 0.6
- 0.7
Expand All @@ -19,11 +18,32 @@ env:
- PYTHON=python3 # python 3.5
- PYTHON=Conda # not actually a python version, here to test Conda.jl's python
matrix:
exclude:
- os: osx
env: PYTHON=python3 # I'm not sure how to install Python 3 on Travis OSX
before_install:
- test "x$TRAVIS_OS_NAME" = xosx -o "x$PYTHON" = xConda || (sudo apt-get -qq update && sudo apt-get install -y $PYTHON)
include:
- &test-macos-py2
language: julia
os: osx
env: PYTHON=python
julia: 0.6
- &test-macos-py3
<<: *test-macos-py2
before_install:
- brew update
- brew upgrade python || echo "Ignoring errors..."
- brew unlink python
- brew link python
env: PYTHON=python3
- &test-macos-conda
<<: *test-macos-py2
env: PYTHON=Conda
- {<<: *test-macos-py2, julia: 0.7}
- {<<: *test-macos-py3, julia: 0.7}
- {<<: *test-macos-conda, julia: 0.7}
- {<<: *test-macos-py2, julia: nightly}
- {<<: *test-macos-py3, julia: nightly}
- {<<: *test-macos-conda, julia: nightly}
# See:
# https://github.com/pytest-dev/pytest/blob/799b72cf6f35c4c4c73797303d3f78c12a795f77/.travis.yml#L38-L52
# https://github.com/pytest-dev/pytest/pull/3893

after_success:
- julia -e 'Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
Expand Down

0 comments on commit b9cca81

Please sign in to comment.