-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from enthought/dev/update-ci
Update CI
- Loading branch information
Showing
14 changed files
with
414 additions
and
159 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,3 +1,4 @@ | ||
.coverage.* | ||
# file types to ignore | ||
*.pyc | ||
*.pyd | ||
|
This file contains 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,32 +1,48 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
language: generic | ||
|
||
env: | ||
global: | ||
- INSTALL_EDM_VERSION=1.10.0 | ||
PYTHONUNBUFFERED="1" | ||
|
||
matrix: | ||
include: | ||
- env: RUNTIME=2.7 | ||
- env: RUNTIME=3.5 | ||
- env: RUNTIME=3.6 | ||
- os: osx | ||
env: RUNTIME=2.7 | ||
- os: osx | ||
env: RUNTIME=3.5 | ||
- os: osx | ||
env: RUNTIME=3.6 | ||
fast_finish: true | ||
|
||
branches: | ||
only: | ||
master | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cache | ||
- $HOME/.ccache | ||
- "~/.cache" | ||
|
||
before_install: | ||
- ccache -s | ||
- export PATH=/usr/lib/ccache:${PATH} | ||
- pip install --upgrade pip | ||
- mkdir -p "${HOME}/.cache/download" | ||
- export DISPLAY=:99.0 | ||
- if [[ ${TRAVIS_OS_NAME} == "linux" ]] ; then sh -e /etc/init.d/xvfb start; fi | ||
- if [[ ${TRAVIS_OS_NAME} == 'linux' ]]; then ./install-edm-linux.sh; export PATH="${HOME}/edm/bin:${PATH}"; fi | ||
- if [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then ./install-edm-osx.sh; export PATH="${PATH}:/usr/local/bin"; fi | ||
- edm install -y wheel click coverage | ||
install: | ||
- pip install --upgrade -r travis-ci-requirements.txt | ||
- python setup.py develop | ||
before_script: | ||
- mkdir testrunner | ||
- cp .coveragerc testrunner/ | ||
- cd testrunner | ||
- edm run -- python etstool.py install --runtime=${RUNTIME} || exit | ||
script: | ||
- coverage run -m nose.core traits --exe | ||
- edm run -- python etstool.py test --runtime=${RUNTIME} || exit | ||
|
||
after_success: | ||
- edm run -- coverage combine | ||
- edm run -- pip install codecov | ||
- edm run -- codecov | ||
|
||
notifications: | ||
email: | ||
- travis-ci@enthought.com | ||
after_success: | ||
coveralls |
This file contains 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains 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,40 +1,40 @@ | ||
build: false | ||
shallow_clone: true | ||
environment: | ||
|
||
global: | ||
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the | ||
# /E:ON and /V:ON options are not enabled in the batch script intepreter | ||
# See: http://stackoverflow.com/a/13751649/163740 | ||
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" | ||
PYTHONUNBUFFERED: "1" | ||
INSTALL_EDM_VERSION: "1.9.2" | ||
# We're having trouble setting up EDM 1.10.0. | ||
# See PR #420 for details. | ||
|
||
matrix: | ||
- PYTHON: "C:\\Python27-x64" | ||
PYTHON_VERSION: "2.7.x" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python34-x64" | ||
PYTHON_VERSION: "3.4.x" | ||
PYTHON_ARCH: "64" | ||
- RUNTIME: '2.7' | ||
- RUNTIME: '3.5' | ||
- RUNTIME: '3.6' | ||
|
||
- PYTHON: "C:\\Python35-x64" | ||
PYTHON_VERSION: "3.5.x" | ||
PYTHON_ARCH: "64" | ||
matrix: | ||
fast_finish: true | ||
|
||
- PYTHON: "C:\\Python36-x64" | ||
PYTHON_VERSION: "3.6.x" | ||
PYTHON_ARCH: "64" | ||
branches: | ||
only: | ||
- master | ||
|
||
cache: | ||
- c:\egg_cache | ||
- C:\Users\appveyor\.cache -> appveyor-clean-cache.txt | ||
- C:\Users\appveyor\AppData\Local\pip\Cache -> appveyor-clean-cache.txt | ||
|
||
init: | ||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
- ps: $Env:path = "C:/Enthought/edm;" + $Env:path | ||
- ps: md C:/Users/appveyor/.cache -Force | ||
|
||
install: | ||
- ps: if ((Test-Path "c:/egg_cache") -eq 0) { mkdir c:/egg_cache } | ||
- ps: python -m pip install --upgrade --no-binary wheel pip | ||
- ps: pip install --upgrade wheel | ||
- ps: pip --version | ||
- "%CMD_IN_ENV% .\\appveyor\\appveyor-install.cmd" | ||
- install-edm-windows.cmd | ||
- edm install -y wheel click coverage | ||
- edm run -- python etstool.py install --runtime=%runtime% | ||
test_script: | ||
- "%CMD_IN_ENV% .\\appveyor\\appveyor-test.cmd" | ||
- edm run -- python etstool.py test --runtime=%runtime% | ||
on_success: | ||
- edm run -- coverage combine | ||
- edm run -- pip install codecov | ||
- edm run -- codecov |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.