File: .travis.yml

package info (click to toggle)
python-sabyenc 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 37,904 kB
  • sloc: ansic: 482; python: 471; sh: 19; makefile: 5
file content (43 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download
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
# We split the 32/64bit manylinux1 over the 2 jobs we already run anyway!
matrix:
  include:
  - os: linux
    language: python
    python: "3.5"
    env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
  - os: linux
    language: python
    python: "3.6"
    env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PRE_CMD=linux32
  - os: linux
    language: python
    python: "3.7"
  - os: linux
    language: python
    python: "3.8"
  - os: osx
    env: HOMEBREW_NO_AUTO_UPDATE=1

install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew install gcc;
    fi;
  - python3 --version
  - python3 -m pip install --upgrade -r tests/requirements.txt
  - python3 setup.py install;

script:
  - python3 -m pytest

after_success:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      python3 setup.py bdist_wheel --dist-dir wheelhouse;
    elif [[ ! -z "$DOCKER_IMAGE" ]]; then
      docker pull $DOCKER_IMAGE;
      docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh;
    fi;
  - python3 -m pip install twine
  - twine upload --skip-existing -u Safihre -p $pypassword wheelhouse/*

notifications:
  email: false