This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
113 lines (100 loc) · 2.5 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
dist: xenial
sudo: required
language: python
python:
- '3.6'
cache:
directories:
- $HOME/.cargo
- $HOME/.cache/pip
env:
global:
# Minimum version required by PyO3
# Latest nightly does not work in manylinux container
- RUSTCSV_RUST_VERSION=nightly-2019-01-09
- RUSTCSV_BUILD_DEBUG=False
- RUSTCSV_LOG=debug
- RUST_BACKTRACE=1
before_install:
- pip install --upgrade pip
- pip install --upgrade pipenv
- pip install --upgrade twine # Used by publish scripts
- pipenv install --dev --deploy
install:
- ./travis/install-rust.sh
- source ~/.cargo/env
- make develop-release
stages:
- test
- deploy
- benchmark
script:
- make $TARGET # Intentionally unquoted
jobs:
include:
- stage: test
name: run tests
env:
- TARGET="test test-example-scripts"
- stage: benchmark
name: run benchmark-full
script: make benchmark-full
env:
- RUSTCSV_LOG=error
- TARGET=benchmark-full
# manylinux cp35
- stage: deploy
name: publish manylinux cp35
services:
- docker
env:
- WHEEL_PYTHON_VERSIONS=cp35
# The wheels should be portable
- RUSTCSV_BUILD_NATIVE=False
script: bash travis/deploy.sh
install: skip
if: tag IS present
# manylinux cp36
- stage: deploy
name: publish manylinux cp36
services:
- docker
env:
- WHEEL_PYTHON_VERSIONS=cp36
# The wheels should be portable
- RUSTCSV_BUILD_NATIVE=False
script: bash travis/deploy.sh
install: skip
if: tag IS present
# manylinux cp37
- stage: deploy
name: publish manylinux cp37
services:
- docker
env:
- WHEEL_PYTHON_VERSIONS=cp37
# The wheels should be portable
- RUSTCSV_BUILD_NATIVE=False
script: travis/deploy.sh
install: skip
if: tag IS present
- stage: deploy
name: publish sdist
install: skip
script: make clean build-sdist publish-wheelhouse
if: tag IS present
# Installing dependencies on travis osx is hell
# # osx cp36 & cp37
# - stage: test
# os: osx
# language: generic
# env:
# - WHEEL_PYTHON_VERSIONS=cp36 cp37
# script: travis/deploy-osx.sh
# before_install:
# # osx only has python 2.7 at the moment
# # https://github.com/travis-ci/travis-ci/issues/9744
# - pip install -U pip
# - pip install -U pipenv
# install: skip
# if: tag IS present