-
Notifications
You must be signed in to change notification settings - Fork 45
Use EDM for Travis CI builds #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,62 @@ | ||
| language: python | ||
| language: generic | ||
| sudo: false | ||
| python: | ||
| - '2.7_with_system_site_packages' | ||
| - 3.4 | ||
|
|
||
| addons: | ||
| apt: | ||
| packages: | ||
| - python-qt4 | ||
| - python-qt4-dev | ||
| - python-qt4-gl | ||
| - python-pip | ||
| - python-numpy | ||
| - python-wxtools | ||
| - ccache | ||
| - cmake | ||
| - swig | ||
| - zlib1g-dev | ||
| - libpng-dev | ||
| - libfreetype6-dev | ||
| - python-cairo | ||
| - libcairo2-dev | ||
|
|
||
| env: | ||
| - ETS_TOOLKIT=wx PILLOW='pillow' | ||
| - ETS_TOOLKIT=qt4 PILLOW='pillow' | ||
| - ETS_TOOLKIT=null.image PILLOW='pillow<3.0.0' | ||
| - ETS_TOOLKIT=null.image PILLOW='pillow' | ||
| global: | ||
| - INSTALL_EDM_VERSION=1.5.2 | ||
| PYTHONUNBUFFERED="1" | ||
|
|
||
| matrix: | ||
| exclude: | ||
| - python: 3.4 | ||
| env: ETS_TOOLKIT=wx PILLOW='pillow' | ||
| include: | ||
| - env: RUNTIME=2.7 TOOLKIT=wx PILLOW='pillow' | ||
| - env: RUNTIME=2.7 TOOLKIT=pyqt PILLOW='pillow' | ||
| - env: RUNTIME=3.5 TOOLKIT=pyqt PILLOW='pillow' | ||
| - env: RUNTIME=2.7 TOOLKIT=null PILLOW='pillow' | ||
| - env: RUNTIME=3.5 TOOLKIT=null PILLOW='pillow' | ||
| - env: RUNTIME=2.7 TOOLKIT=null PILLOW='pillow<3.0.0' | ||
| - env: RUNTIME=3.5 TOOLKIT=null PILLOW='pillow<3.0.0' | ||
| allow_failures: | ||
| - env: RUNTIME=2.7 TOOLKIT=wx PILLOW='pillow' | ||
| fast_finish: true | ||
|
|
||
| branches: | ||
| only: | ||
| - master | ||
|
|
||
| cache: | ||
| directories: | ||
| - $HOME/.cache | ||
| - $HOME/.ccache | ||
|
|
||
| before_install: | ||
| - ccache -s | ||
| - export PATH=/usr/lib/ccache:${PATH} | ||
| - pip install --upgrade pip | ||
| - if [[ ${TRAVIS_PYTHON_VERSION} == "3.4" && ${ETS_TOOLKIT} == "qt4" ]]; then ./build_pyside_wheel.sh; fi | ||
| # setup X11 for the tests | ||
| - mkdir -p "${HOME}/.cache/download" | ||
| - ci/install-edm.sh | ||
| - export PATH="${HOME}/edm/bin:/usr/lib/ccache:${PATH}" | ||
| - edm install -y wheel click coverage | ||
| - export DISPLAY=:99.0 | ||
| - sh -e /etc/init.d/xvfb start | ||
| install: | ||
| # Install pillow separately to control the version | ||
| - pip install $PILLOW | ||
| - pip install -r travis-ci-requirements | ||
| - python setup.py develop | ||
| before_script: | ||
| - mkdir testrunner | ||
| - cp .coveragerc testrunner | ||
| - cd testrunner | ||
| - edm run -- python ci/edmtool.py install --runtime=${RUNTIME} --toolkit=${TOOLKIT} --pillow=${PILLOW} | ||
| script: | ||
| - coverage run -m nose.core enable -v | ||
| - coverage run -a -m nose.core kiva -v | ||
| - edm run -- python ci/edmtool.py test --runtime=${RUNTIME} --toolkit=${TOOLKIT} --pillow=${PILLOW} | ||
|
|
||
| after_success: | ||
| - pip install codecov | ||
| - codecov | ||
| - edm run -- coverage combine | ||
| - edm run -- pip install codecov | ||
| - edm run -- codecov | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not 1.7.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not up-to-date with EDM versions. TraitsUI is using this version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well we should fix traitsui also the current version is 1.7.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually... I disagree. 1.7.1 doesn't install correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point to the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, yes: https://travis-ci.org/enthought/enable/builds/248823643
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I yes, I now remember there is a bug in the
shinstaller for1.7.1