Skip to content

Commit

Permalink
Merge pull request #420 from enthought/dev/update-ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
mdickinson committed Dec 18, 2018
2 parents 2e78816 + 6d02044 commit 01bf50e
Show file tree
Hide file tree
Showing 14 changed files with 414 additions and 159 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ branch = True
source = traits
omit = */tests/*

[paths]
source =
./traits
*/traits

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.coverage.*
# file types to ignore
*.pyc
*.pyd
Expand Down
58 changes: 37 additions & 21 deletions .travis.yml
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
1 change: 1 addition & 0 deletions appveyor-clean-cache.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
50 changes: 25 additions & 25 deletions appveyor.yml
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
12 changes: 0 additions & 12 deletions appveyor/appveyor-install.cmd

This file was deleted.

6 changes: 0 additions & 6 deletions appveyor/appveyor-test.cmd

This file was deleted.

88 changes: 0 additions & 88 deletions appveyor/run_with_env.cmd

This file was deleted.

Empty file added ci-src-requirements.txt
Empty file.

0 comments on commit 01bf50e

Please sign in to comment.