summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 694268b10540f0b65bc25b9e707f37fd72218ee3 (plain)
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
59
60
61
language: python
cache:
  directories:
  - "$HOME/.cache/pip"
  - "$HOME/.pyenv"
matrix:
  include:
  - name: "Ubuntu: 3.8"
    os: linux
    python: 3.8
  - name: "Ubuntu: 3.7"
    os: linux
    python: 3.7
  - name: "Ubuntu: 3.6"
    os: linux
    python: 3.6
  - name: "Ubuntu: 3.5"
    os: linux
    python: 3.5
  - name: "Ubuntu: 2.7"
    os: linux
    python: 2.7
  - name: "Ubuntu: PyPy 3.5"
    os: linux
    env: PYPY_URL=https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-linux64.tar.bz2
  - name: "Ubuntu: PyPy 2.7"
    os: linux
    env: PYPY_URL=https://bitbucket.org/pypy/pypy/downloads/pypy2-v6.0.0-linux64.tar.bz2
  # Travis Python images are broken in OSX - see https://github.com/travis-ci/travis-ci/issues/9744.
  # Will have to rely on pyenv until the issue is fixed.
  - name: "OSX: 3.7"
    os: osx
    language: generic
    env: PYENV_VERSION=3.7.4 BUILD_SDIST=true
    osx_image: xcode_9.4
  - name: "OSX: 3.6"
    os: osx
    language: generic
    env: PYENV_VERSION=3.6.5
    osx_image: xcode_9.4
  - name: "OSX: 2.7"
    os: osx
    language: generic
    env: PYENV_VERSION=2.7.15
    osx_image: xcode_9.4
install:
- "./.travis/install.sh"
script:
- "./.travis/run.sh"
deploy:
  provider: releases
  api_key:
    secure: Z5m7K1UVq0812nNtR+QAkUE3lxUwhMjM3EDWUOyPmfh0rmOsU2RgQ8oBfT1vatYfY8ExnrG4rRNWmwUqPEIzZmRLmw9zv+ixA3gcVPn6WbbMkwoeIurOPsC9wjgCckDFKYhMda8a92FSL2hVto3JPcRNTZnsKBR35Queray55SM=
  file:
    - dist/*.whl
    - dist/*.tar.gz
  file_glob: true
  on:
    repo: xattr/xattr
    tags: true
  skip_cleanup: true