|
| 1 | +env: |
| 2 | + global: |
| 3 | + - TWINE_USERNAME=dhidas |
| 4 | + |
| 5 | +os: linux |
1 | 6 | language: python |
2 | | -python: |
3 | | - # We don't actually use the Travis Python, but this keeps it organized. |
4 | | - - "2.7" |
5 | | - - "3.3" |
6 | | - - "3.4" |
7 | | - - "3.5" |
8 | | - - "3.6" |
9 | | - |
10 | | -os: |
11 | | - - linux |
| 7 | +python: 3.6 |
| 8 | + |
| 9 | +matrix: |
| 10 | + include: |
| 11 | + - sudo: required |
| 12 | + services: |
| 13 | + - docker |
| 14 | + env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 |
| 15 | + |
| 16 | +install: |
| 17 | + - pip install -U twine |
| 18 | + - docker pull $DOCKER_IMAGE |
| 19 | + |
| 20 | +script: |
| 21 | + - pip install -U twine |
| 22 | + - docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/.ci/build-wheels.sh |
| 23 | + - ls wheelhouse/ |
| 24 | + - twine upload -r pypi wheelhouse/*manylinux1_x86_64.whl |
| 25 | + |
| 26 | +skip_cleanup: true |
| 27 | + |
| 28 | +#language: generic |
| 29 | +#language: python |
| 30 | +#python: |
| 31 | +# # We don't actually use the Travis Python, but this keeps it organized. |
| 32 | +# - "2.7" |
| 33 | +# - "3.3" |
| 34 | +# - "3.4" |
| 35 | +# - "3.5" |
| 36 | +# - "3.6" |
| 37 | + |
| 38 | +#os: |
| 39 | +# - linux |
12 | 40 | # - osx |
13 | 41 |
|
14 | 42 | compiler: |
15 | | - - gcc |
16 | | - - clang |
| 43 | +# - gcc |
| 44 | +# - clang |
| 45 | + |
| 46 | +# Perform the manual steps on osx to install python3 and activate venv |
| 47 | +#before_install: |
| 48 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi |
| 49 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi |
| 50 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python3; fi |
| 51 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi |
| 52 | + |
17 | 53 |
|
18 | 54 | install: |
19 | | - - sudo apt-get update |
20 | | - |
21 | | - # Deal with python versions and osx vs linux |
22 | | - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
23 | | - export MYSYS="MacOSX"; |
24 | | - else |
25 | | - export MYSYS="Linux"; |
26 | | - fi |
27 | | - - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then |
28 | | - wget https://repo.continuum.io/miniconda/Miniconda2-latest-$MYSYS-x86_64.sh -O miniconda.sh; |
29 | | - else |
30 | | - wget https://repo.continuum.io/miniconda/Miniconda3-latest-$MYSYS-x86_64.sh -O miniconda.sh; |
31 | | - fi |
32 | | - |
33 | | - # Get what we need from conda |
34 | | - - bash miniconda.sh -b -p $HOME/miniconda |
35 | | - - export PATH="$HOME/miniconda/bin:$PATH" |
36 | | - - hash -r |
37 | | - - conda config --set always_yes yes --set changeps1 no |
38 | | - - conda update -q conda |
39 | | - - conda info -a |
40 | | - - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION |
41 | | - - source activate test-environment |
42 | | - |
43 | | - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
44 | | - export MYSYS="MacOSX"; |
45 | | - else |
46 | | - export MYSYS="Linux"; |
47 | | - fi |
48 | | - |
49 | | - |
50 | | - - python setup.py install |
| 55 | +# - sudo apt-get update |
| 56 | +# |
| 57 | +# # Deal with python versions and osx vs linux |
| 58 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
| 59 | +# export MYSYS="MacOSX"; |
| 60 | +# else |
| 61 | +# export MYSYS="Linux"; |
| 62 | +# fi |
| 63 | +# - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then |
| 64 | +# wget https://repo.continuum.io/miniconda/Miniconda2-latest-$MYSYS-x86_64.sh -O miniconda.sh; |
| 65 | +# else |
| 66 | +# wget https://repo.continuum.io/miniconda/Miniconda3-latest-$MYSYS-x86_64.sh -O miniconda.sh; |
| 67 | +# fi |
| 68 | +# |
| 69 | +# # Get what we need from conda |
| 70 | +# - bash miniconda.sh -b -p $HOME/miniconda |
| 71 | +# - export PATH="$HOME/miniconda/bin:$PATH" |
| 72 | +# - hash -r |
| 73 | +# - conda config --set always_yes yes --set changeps1 no |
| 74 | +# - conda update -q conda |
| 75 | +# - conda info -a |
| 76 | +# - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION |
| 77 | +# - source activate test-environment |
| 78 | +# |
| 79 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
| 80 | +# export MYSYS="MacOSX"; |
| 81 | +# else |
| 82 | +# export MYSYS="Linux"; |
| 83 | +# fi |
| 84 | +# |
| 85 | +# |
| 86 | +# - python setup.py install |
51 | 87 |
|
52 | | -script: |
53 | | - - python test/test.py |
| 88 | +#script: |
| 89 | +# - python test/test.py |
0 commit comments