-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
80 lines (67 loc) · 3.05 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
dist: trusty
sudo: false # Use the new travis docker based infrastructure
git:
# We need a deeper depth for 'git descibe' to ensure
# we can reach the last tagged version.
depth: 99999
language: python
matrix:
include:
- python: "3.6"
cache:
directories:
- $HOME/.cache/pip
addons:
apt:
update: true
sources:
- sourceline: ppa:nextgis/ppa
packages:
- gdal-bin
- gdal-data
- libgdal-dev
- libgdal20
- libudunits2-0
before_install:
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
- export C_INCLUDE_PATH=/usr/include/gdal
install:
- pip install pydash boltons yamllint pycodestyle voluptuous hdmedians 'pytest>=3.6' mock boltons pytest-cov coveralls psutil hypothesis shapely fiona pylint boto3 'numpy>=1.17'
- pip install gdal==2.4.0
- travis_retry pip install git+git://github.com/opendatacube/datacube-core.git@develop
- travis_retry pip install git+git://github.com/GeoscienceAustralia/eo-datasets.git@eodatasets1
- travis_retry pip install git+git://github.com/GeoscienceAustralia/digitalearthau.git
- travis_retry pip install --extra-index-url="https://packages.dea.ga.gov.au" odc-algo
- pip install . --no-deps --upgrade
- pip freeze
script:
- ./check-code.sh
after_success:
- test $TRAVIS_PYTHON_VERSION = "3.6" && coveralls
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- python setup.py sdist bdist_wheel
# On success, upload a package to an S3 Bucket. Used for continuous deployment.
deploy:
# Deploy the sdist tarball and bdist_wheel to s3 for tags or the develop branch
# It can be installed via pip install --extra-index-url https://packages.dea.gadevs.ga/ datacube
# For tags, the object will be datacube-stats/datacube-stats-1.4.2.tar.gz
# For develop, the object will be datacube-stats/datacube-stats-1.4.1+91.g43bd4e12.tar.gz
- provider: s3
bucket: "datacube-core-deployment"
region: "ap-southeast-2"
local_dir: dist
upload_dir: datacube-stats
skip_cleanup: true
on:
all_branches: true # Let the condition below decide if the branch is to be deployed
condition: $TRAVIS_BRANCH = "master" || $TRAVIS_BRANCH = "develop" || ! -z "${TRAVIS_TAG}" # master, develop or tagged
repo: opendatacube/datacube-stats
python: "3.6"
notifications:
slack:
on_success: change
on_failure: always
on_pull_requests: false
rooms:
secure: kUlIXKlqxpnfNwJxgZdLy5XtfeYnc5Iq+OdvtyMFBJ94Iw3gP64KH8C/pUPqJblwiINj/vi5AF1TSaVG5VgSVF5zwEhAa4Ad0V9OZvsfJuLoE5/nFvkCdXeOU70/aMitF5SG7x6Q9LYhDqUDtS/XyGy48f2eiXN0Sa6/3KGQbyFXRvMDQercNR8LXXXjJZ0VjMsUD2Zl5FVy3FMHItVUTVlyMiBc/1fPJiSxOPz8ySSjeANnKuFIQN7/h+IbIrEVIJh8/T8SkOpuYceXBosr4HDfcTt3mFp0gT4Gc4TvYIjN/ykzomSY2+fkr0txSb7ao7+ZZvZ6XWfB6A/MnGNbmwSFmYX5fbBs493ErsIrCealsqvtyE2lvAj58vOv/5sFtBcD9d2hPUCCm345D7TGh6KMrSELfg4fhTiGfg181I6ZdQUR6veb9H1aPmE2Kh+XnZOaGP/uI7GkUeCRH92pPPjWf6/7YdxwFTsgggKxdE3FZVwYjO6DJBJ12iuXcOVz6MFXCpeiYNZPzXBtCF+tngGS9NEG6/CM1wP5CfbJEEbYXB0eL+qRQRkCgzYKQgvtreOfsfbMP1Oi2vBTq/JfdY888B3HVXJxUm1RPAAw4DsynbKzyCqoRECz6+X2zCR7i5DlcoEKuKURRA9DA0WPnMqUHAJsUS2n7jj58ANHo0o=