Skip to content

Commit cdabe5a

Browse files
committed
Merge remote-tracking branch 'origin/master' into python-3
2 parents b8d60f7 + 01bf50e commit cdabe5a

14 files changed

+414
-159
lines changed

.coveragerc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ branch = True
33
source = traits
44
omit = */tests/*
55

6+
[paths]
7+
source =
8+
./traits
9+
*/traits
10+
611
[report]
712
# Regexes for lines to exclude from consideration
813
exclude_lines =

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.coverage.*
12
# file types to ignore
23
*.pyc
34
*.pyd

.travis.yml

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,48 @@
1-
language: python
2-
sudo: false
3-
python:
4-
- 2.7
5-
- 3.4
6-
- 3.5
7-
- 3.6
1+
language: generic
2+
3+
env:
4+
global:
5+
- INSTALL_EDM_VERSION=1.10.0
6+
PYTHONUNBUFFERED="1"
7+
8+
matrix:
9+
include:
10+
- env: RUNTIME=2.7
11+
- env: RUNTIME=3.5
12+
- env: RUNTIME=3.6
13+
- os: osx
14+
env: RUNTIME=2.7
15+
- os: osx
16+
env: RUNTIME=3.5
17+
- os: osx
18+
env: RUNTIME=3.6
19+
fast_finish: true
20+
821
branches:
922
only:
1023
master
24+
1125
cache:
1226
directories:
13-
- $HOME/.cache
14-
- $HOME/.ccache
27+
- "~/.cache"
28+
1529
before_install:
16-
- ccache -s
17-
- export PATH=/usr/lib/ccache:${PATH}
18-
- pip install --upgrade pip
30+
- mkdir -p "${HOME}/.cache/download"
31+
- export DISPLAY=:99.0
32+
- if [[ ${TRAVIS_OS_NAME} == "linux" ]] ; then sh -e /etc/init.d/xvfb start; fi
33+
- if [[ ${TRAVIS_OS_NAME} == 'linux' ]]; then ./install-edm-linux.sh; export PATH="${HOME}/edm/bin:${PATH}"; fi
34+
- if [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then ./install-edm-osx.sh; export PATH="${PATH}:/usr/local/bin"; fi
35+
- edm install -y wheel click coverage
1936
install:
20-
- pip install --upgrade -r travis-ci-requirements.txt
21-
- python setup.py develop
22-
before_script:
23-
- mkdir testrunner
24-
- cp .coveragerc testrunner/
25-
- cd testrunner
37+
- edm run -- python etstool.py install --runtime=${RUNTIME} || exit
2638
script:
27-
- coverage run -m nose.core traits --exe
39+
- edm run -- python etstool.py test --runtime=${RUNTIME} || exit
40+
41+
after_success:
42+
- edm run -- coverage combine
43+
- edm run -- pip install codecov
44+
- edm run -- codecov
45+
2846
notifications:
2947
email:
3048
31-
after_success:
32-
coveralls

appveyor-clean-cache.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

appveyor.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
build: false
2-
shallow_clone: true
32
environment:
43

54
global:
6-
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
7-
# /E:ON and /V:ON options are not enabled in the batch script intepreter
8-
# See: http://stackoverflow.com/a/13751649/163740
9-
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
5+
PYTHONUNBUFFERED: "1"
6+
INSTALL_EDM_VERSION: "1.9.2"
7+
# We're having trouble setting up EDM 1.10.0.
8+
# See PR #420 for details.
109

1110
matrix:
12-
- PYTHON: "C:\\Python27-x64"
13-
PYTHON_VERSION: "2.7.x"
14-
PYTHON_ARCH: "64"
1511

16-
- PYTHON: "C:\\Python34-x64"
17-
PYTHON_VERSION: "3.4.x"
18-
PYTHON_ARCH: "64"
12+
- RUNTIME: '2.7'
13+
- RUNTIME: '3.5'
14+
- RUNTIME: '3.6'
1915

20-
- PYTHON: "C:\\Python35-x64"
21-
PYTHON_VERSION: "3.5.x"
22-
PYTHON_ARCH: "64"
16+
matrix:
17+
fast_finish: true
2318

24-
- PYTHON: "C:\\Python36-x64"
25-
PYTHON_VERSION: "3.6.x"
26-
PYTHON_ARCH: "64"
19+
branches:
20+
only:
21+
- master
2722

2823
cache:
29-
- c:\egg_cache
24+
- C:\Users\appveyor\.cache -> appveyor-clean-cache.txt
25+
- C:\Users\appveyor\AppData\Local\pip\Cache -> appveyor-clean-cache.txt
3026

3127
init:
32-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
28+
- ps: $Env:path = "C:/Enthought/edm;" + $Env:path
29+
- ps: md C:/Users/appveyor/.cache -Force
30+
3331
install:
34-
- ps: if ((Test-Path "c:/egg_cache") -eq 0) { mkdir c:/egg_cache }
35-
- ps: python -m pip install --upgrade --no-binary wheel pip
36-
- ps: pip install --upgrade wheel
37-
- ps: pip --version
38-
- "%CMD_IN_ENV% .\\appveyor\\appveyor-install.cmd"
32+
- install-edm-windows.cmd
33+
- edm install -y wheel click coverage
34+
- edm run -- python etstool.py install --runtime=%runtime%
3935
test_script:
40-
- "%CMD_IN_ENV% .\\appveyor\\appveyor-test.cmd"
36+
- edm run -- python etstool.py test --runtime=%runtime%
37+
on_success:
38+
- edm run -- coverage combine
39+
- edm run -- pip install codecov
40+
- edm run -- codecov

appveyor/appveyor-install.cmd

Lines changed: 0 additions & 12 deletions
This file was deleted.

appveyor/appveyor-test.cmd

Lines changed: 0 additions & 6 deletions
This file was deleted.

appveyor/run_with_env.cmd

Lines changed: 0 additions & 88 deletions
This file was deleted.

ci-src-requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)