Added different python versions to travis

This commit is contained in:
Daniel Wang 2018-07-19 17:00:32 -04:00
parent 8cfa1b84d9
commit 0daa84dadd
No known key found for this signature in database
GPG Key ID: 82968CE7F0EA634E
1 changed files with 18 additions and 9 deletions

View File

@ -1,8 +1,17 @@
language: python
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.6"
- "3.7"
matrix: matrix:
include: include:
- os: linux - os: linux
dist: trusty # Ubuntu 14.04 dist: trusty # Ubuntu 14.04
sudo: true sudo: false
env: env:
- MATRIX_EVAL="" - MATRIX_EVAL=""
- os: osx - os: osx
@ -22,21 +31,21 @@ before_install:
- env - env
- rvm install ruby --latest - rvm install ruby --latest
- gem install dropbox-deployment - gem install dropbox-deployment
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3-setuptools python3-wheel; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install setuptools wheel; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew bundle; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew bundle; fi
- eval "${MATRIX_EVAL}" - eval "${MATRIX_EVAL}"
install: install:
- python3 setup.py build - python setup.py build
- python3 setup.py bdist_wheel - python setup.py bdist_wheel
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 setup.py install; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python setup.py install; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo python3 setup.py install; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo python setup.py install; fi
script: script:
- python3 -c 'import klayout.db as db; print(dir(db))' - python -c 'import klayout.db as db; print(dir(db))'
- python3 -c 'import klayout.rdb as rdb; print(dir(rdb))' - python -c 'import klayout.rdb as rdb; print(dir(rdb))'
- python3 -c 'import klayout.tl as tl; print(dir(tl))' - python -c 'import klayout.tl as tl; print(dir(tl))'
after_success: after_success:
- dropbox-deployment - dropbox-deployment