A community-maintained Python framework for creating mathematical animations.
Test new travis job matrix (with Windows too)
safinsingh87068170ea3a
diff --git a/.travis.yml b/.travis.ymlindex 856405741..8425a5bd8 100644--- a/.travis.yml+++ b/.travis.yml@@ -1,61 +1,58 @@-matrix:- include:- - os: linux- language: python- python: "3.6"-- - os: linux- language: python- python: "3.7"-- - os: linux- language: python- python: "3.8"-- # Travis does not currently support python builds on windows. For- # macOS, we need to do some magic (see before_install section).- # https://docs.travis-ci.com/user/languages/python/- - os: osx- language: generic- python: "3.6"- env: PYVER="3.6.10"-- - os: osx- language: generic- python: "3.7"- env: PYVER="3.7.7"-- - os: osx- language: generic- python: "3.8"- env: PYVER="3.8.0"-+language: python+python:+ - "3.6"+ - "3.7"+ - "3.8"++jobs:+ include:+ # Linux Jobs+ - os: linux+ language: python+ python: 3.6+ - os: linux+ language: python+ python: 3.7+ - os: linux+ language: python+ python: 3.8++ # MacOS (OSX) Jobs+ - os: osx+ language: sh+ python: 3.6+ env: PYVER="3.6.10"+ - os: osx+ language: sh+ python: 3.7+ env: PYVER="3.7.7"+ - os: osx+ language: sh+ python: 3.8+ env: PYVER="3.8.2"++ # Windows Jobs+ - os: windows+ language: sh+ python: 3.6+ env: PYVER=Python36+ - os: windows+ language: sh+ python: 3.7+ env: PYVER=Python37+ - os: windows+ language: sh+ python: 3.8+ env: PYVER=Python38before_install:- - |- if [ "$TRAVIS_OS_NAME" == "osx" ]; then- brew update- brew install openssl readline- brew outdated pyenv || brew upgrade pyenv- brew install pyenv-virtualenv- pyenv install $PYVER- export PYENV_VERSION=$PYVER- export PATH="/Users/travis/.pyenv/shims:${PATH}"- pyenv virtualenv venv- source ~/.pyenv/versions/venv/bin/activate- python --version- fi-+ - if [ "$TRAVIS_OS_NAME" == "osx" ]; then chmod +x .travis/linux.sh; sh .travis/linux.sh; fi+ - if [ "$TRAVIS_OS_NAME" == "windows" ]; then chmod +x .travis/windows.sh; sh .travis/windows.sh; fi+install:- pip install --upgrade pip- pip install -r requirements.txt- pip install .-# command to run testsscript:- - pytest--# branches that trigger Travis builds-branches:- only:- - travis-setup+ - pytest\ No newline at end of filediff --git a/.travis/osx.sh b/.travis/osx.shnew file mode 100644index 000000000..1d3ec02b0--- /dev/null+++ b/.travis/osx.sh@@ -0,0 +1,12 @@+##### THIS IS FOR TRAVIS BUILDS, DO NOT RUN THIS ON YOUR COMPUTER! #####++brew update+brew install openssl readline+brew outdated pyenv || brew upgrade pyenv+brew install pyenv-virtualenv+pyenv install $PYVER+export PYENV_VERSION=$PYVER+export PATH="/Users/travis/.pyenv/shims:${PATH}"+pyenv virtualenv venv+source ~/.pyenv/versions/venv/bin/activate+python --version\ No newline at end of filediff --git a/.travis/windows.sh b/.travis/windows.shnew file mode 100644index 000000000..e726dfc10--- /dev/null+++ b/.travis/windows.sh@@ -0,0 +1,4 @@+##### THIS IS FOR TRAVIS BUILDS, DO NOT RUN THIS ON YOUR COMPUTER! #####++choco install python3+export PATH="/c/$PYVER:/c/$PYVER/Scripts:$PATH"\ No newline at end of file