aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 7b81f29860a1e278ca0f9ae7c7bc1c03367fece0 (about) (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: generic

env:
    global:
        - PYMODULE=immutables
        - RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7 3.8"

        - S3_UPLOAD_USERNAME=oss-ci-bot
        - S3_UPLOAD_BUCKET=magicstack-oss-releases
        - TWINE_USERNAME=magicstack-ci

branches:
    # Avoid building PR branches.
    only:
        - master
        - ci
        - releases
        - /^v\d+(\.\d+)*$/

matrix:
    fast_finish:
        true

    include:
        - os: linux
          dist: trusty
          sudo: false
          language: python
          python: "3.5"
          env: BUILD=tests

        - os: linux
          dist: xenial
          sudo: true
          language: python
          python: "3.7"
          env: BUILD=tests

        - os: linux
          dist: xenial
          language: python
          python: "3.8"
          env: BUILD=tests

        - os: linux
          dist: trusty
          sudo: required
          language: python
          python: "3.6"
          env: BUILD=tests,wheels,release
          services: [docker]

        - os: osx
          env: BUILD=tests,wheels PYTHON_VERSION=3.5.5

        - os: osx
          env: BUILD=tests,wheels PYTHON_VERSION=3.6.5

        - os: osx
          env: BUILD=tests,wheels PYTHON_VERSION=3.7.0

        - os: osx
          env: BUILD=tests,wheels PYTHON_VERSION=3.8.0

cache:
    pip

before_install:
    - .ci/travis-before-install.sh

install:
    - .ci/travis-install.sh

script:
    - .ci/travis-tests.sh
    - .ci/travis-build-wheels.sh

deploy:
    provider: script
    script: .ci/travis-release.sh
    on:
        tags: true
        condition: '"${BUILD}" == *release*'