forked from google/python-subprocess32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (58 loc) · 2.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: python
os: linux
# Each attribute in the matrix will override the global attribute.
matrix:
fast_finish: true
# When MacOS gets to be too high latency or flaky, uncomment this.
#allow_failures:
# - os: osx
include:
- python: 2.7
deploy:
provider: pypi
user: "GregoryPSmith"
password: $TEST_PYPI_PASSWORD
server: https://test.pypi.org/legacy/
on:
tags: true
branch: master
# No wheels for Linux (manylinux1 is too old)
distributions: sdist
- python: 2.6
# Python 2.6 does not have test discovery.
script: python test_subprocess32.py
env:
- LANG=C
- python: 3.5
# Just check that the dummy shim installs and works on 3.x.
script: |
cd / # We cannot be in the directory with subprocess32.py in it.
python -c 'import os, subprocess32, subprocess, sys; print("working directory:", os.getcwd()); print("subprocess32 module is", subprocess32); sys.exit(subprocess32 is not subprocess)'
- os: osx
# Travis does not have a Python runtime for MacOS.
# https://pythonhosted.org/CodeChat/.travis.yml.html
language: generic
before_install:
- pkgutil --pkgs | grep -F "org.python.Python.PythonFramework-2.7" || curl -L -o /tmp/Python.pkg https://www.python.org/ftp/python/2.7.15/python-2.7.15-macosx10.6.pkg && sudo installer -pkg /tmp/Python.pkg -target /
- pkgutil --pkgs | grep -F "org.python.Python.PythonFramework"
- export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
- which pip2
- pip2 install --upgrade pip
- pip2 install --upgrade twine
- which twine
install:
- pip2 -v install .
deploy:
provider: pypi
user: "GregoryPSmith"
password: $TEST_PYPI_PASSWORD
server: https://test.pypi.org/legacy/
on:
tags: true
branch: master
distributions: bdist_wheel
install:
- pip install .
script:
- which python ; python --version
- python -m unittest discover -v