-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
66 lines (60 loc) · 2.18 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
os: linux
dist: xenial
language: python
python: 3.7
sudo: required
fast_finish: true
addons:
apt:
sources:
- sourceline: 'ppa:ubuntugis/ppa'
packages:
- libfftw3-dev
- libgdal-dev
homebrew:
packages:
# GDAL is already included on osx images
- fftw
install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# Work in a virtual environment to avoid having to do
# "pip3 install --user"
python3 -m venv venv
source venv/bin/activate
fi
- pip install -e ".[test]" --upgrade --upgrade-strategy eager
script: pytest tests
jobs:
include:
- stage: packaging
name: "Python sdist installation"
install: skip
script:
- python setup.py sdist
- pip install dist/*.tar.gz
- stage: packaging
name: "Docker build"
addons: skip
install: skip
script: docker build .
- stage: test
- stage: test
os: osx
# The default osx image (xcode9.4 as of 2019-09-30) has a very old brew,
# which crashes with the `addons` feature, so we use a non-default more recent one
# (see https://github.com/Homebrew/homebrew-bundle/issues/540#issuecomment-518301382)
osx_image: xcode11
language: generic
- stage: deploy
if: tag IS present AND repo = cmla/s2p
install: skip
script: skip
deploy:
- provider: pypi
user: carlodef
password:
secure: G7hXKw6wtWtHk8MfC+3pmtZbgCLyclacsHEf6o1tEqKWy+7D5+zeKRM2IjtbckIRPiM9zSVtUyGsZiBzNu6TMKUlzrDtIl+76CdyiFjMevbF6D8KZ2tMC9lDX5Ug3LmaYn5jzFOr16/ntEnCt4wEjyob5nESKf34Uly754cf/1afBo090Jw339U1JNLa4RwEwFLmaW1TcEa8H3ZVMST1t80uiUZ/VVDXzgvdxAwIMqnxSO4nYJ/TnU4cFJAULtSGhZ/swypSvgwCrBpyzjoT6f3BkTQnUuFTYuqbmKpflY3uvMzUxUCB0ZnsLi30uQs30R7Htzz0e0kZ/4NpXHlljsvZ2rhzHXeStp2A4RSGgRVPJMlhwbGJfIXuuuzpHER/RM2SdkEohfalVSkPYF9yxIRyhk3mL2ADkFaky54bXTgZgBOfPRxU4Hdoo9l34h1Rbbv2xax0nMgPHf8YGMvM4+Hh5Jf3Ve52/WBjzlDBb18Z2YYnfLcRuCdd5EkSn16jiqjnc7rrPd5vwJxcv+8BT68qRkyIb8OwZYQ4/Bg22Uxkx7xhZJWPYXioQjYSYLAK30No9Y9Cg/3LIL1z7rzAwrjMlQobSIRjM5MX7kKj0lwmWIV+1agWefM3LIXn7Bc4tKtAf9JnEUfEQA/6FxGB/GLBS8DBu4zoYF3uQ6FKqUY=
distributions: sdist
on:
tags: true