forked from dedupeio/dedupe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (98 loc) · 2.83 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
branches:
only:
- master
- "/^v.*$/"
notifications:
email:
on_success: change
on_failure: always
irc: chat.freenode.net#dedupe
dist: xenial
language: python
sudo: false
matrix:
include:
- python: 3.7
- python: 3.6
- python: 3.5
- python: 2.7
# It's important to use 'macpython' builds to get the least
# restrictive wheel tag. It's also important to avoid
# 'homebrew 3' because it floats instead of being a specific version.
- os: osx
language: generic
env: TERRYFY_PYTHON='macpython 2.7'
- os: osx
language: generic
env: TERRYFY_PYTHON='macpython 3.5'
- os: osx
language: generic
env: TERRYFY_PYTHON='macpython 3.6.1'
- os: osx
language: generic
env: TERRYFY_PYTHON='macpython 3.7.0'
- services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
before_install:
- if ! [[ $TRAVIS_TAG ]]; then exit 0; fi
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE /io/.manylinux-install.sh
after_success:
- pip install twine && twine upload --skip-existing -u datamade.wheelbuilder -p $PYPIPASSWORD wheelhouse/*
- exit 0
- services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
before_install:
- if ! [[ $TRAVIS_TAG ]]; then exit 0; fi
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE /io/.manylinux-install.sh
after_success:
- pip install twine && twine upload --skip-existing -u datamade.wheelbuilder -p $PYPIPASSWORD wheelhouse/*
- exit 0
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/MacPython/terryfy; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/travis_tools.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then get_python_environment $TERRYFY_PYTHON venv; fi
- python mtime.py
install:
- pip install --upgrade pip
- pip uninstall -y numpy
- pip install --upgrade -r requirements.txt
- cython src/*.pyx
- pip install -e .
script:
- pytest tests dedupe --cov dedupe
- python tests/canonical.py -vv
after_success:
- pip install coveralls
- coveralls
deploy:
- provider: pypi
skip_cleanup: true
user: datamade.wheelbuilder
on:
tags: true
condition: "$TRAVIS_OS_NAME = osx"
distributions: bdist_wheel
password: $PYPIPASSWORD
- provider: pypi
skip_cleanup: true
user: datamade.wheelbuilder
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
distributions: sdist
password: $PYPIPASSWORD
env:
global:
- secure: T3lCe9jJUbYLB0WHgSD+utrmJSvgcXCLi+Lwugsaa2SXIX8UzL7TbwHWB1t10H4sddy0QBBwanqRptv6iZ7gN0EtIE6+BDv6FJcNZJBDp13pUoQqq1Fm3OMbEniLrc/ubV6mZyJLHh6oNJtzSWPk1wrFvByLpYskeZIm4ayw4Mc=
cache:
directories:
- "$HOME/.cache/"
- .pytest_cache