forked from opendatacube/datacube-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
124 lines (104 loc) · 5.17 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
114
115
116
117
118
119
120
121
122
123
124
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
env:
global:
- CC_TEST_REPORTER_ID=56b5f09a9339c3ada591c94a6430823aee15e426fbcd9990e04fe936e40c8582
language: python
python:
- "3.5"
- "3.6"
cache:
directories:
- $HOME/.cache/pip
# Install required packages
addons:
# We typically use postgres 9.6, but Travis has 9.5 pre-installed, so the build goes a little faster
postgresql: "9.5"
services:
- postgresql
- redis-server
apt:
sources:
- sourceline: ppa:nextgis/ppa
packages:
- gdal-bin
- gdal-data
- libgdal-dev
- libgdal20
- libudunits2-0
before_install:
# Create a database for the integration tests.
- createdb agdcintegration
# Check disk usage
- df -h
- df -i
# Set paths for building python-gdal
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
- export C_INCLUDE_PATH=/usr/include/gdal
- pip install coveralls
- pip install --requirement requirements-test.txt
install:
# Install datacube
- pip install '.[test,celery,s3]'
- pip install ./tests/drivers/fail_drivers --no-deps --upgrade # used to test exception paths in driver loader
# Print installed packages in case we need to debug them
- pip freeze
# Check disk usage
- df -h
- df -i
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
# Ensure we are running against the correct python version
- '[[ $(python --version 2>&1) == *"$TRAVIS_PYTHON_VERSION"* ]]'
# Run all the linting and tests
- ./check-code.sh integration_tests
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- test $TRAVIS_PYTHON_VERSION = "3.6" && coveralls
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/datacube-1.4.2.tar.gz
# For develop, the object will be datacube/datacube-1.4.1+91.g43bd4e12.tar.gz
- provider: s3
access_key_id: "AKIAJMZN4F5L5KXPQKVQ"
secret_access_key:
secure: owxrrQc4i1jfAwvASFewdMzNdi93zpwnoEhsTJQS/f3SkD083XpefUr4H7Mg8cZiq5grT6NpoYkG6QDoxz30Kn5IbDIHewRy3I11uwz02JGUkzxv+/7hLOnoM/LM993WWXA+YQJmrO4HvncDy3Hgbw98xkKOeqsQ1XlYR8Lp5NUQnwJtLkouOJYfJSU/ZuIyetYC3bO2JkF/smtEPmVPJ8ZJjAQEqCdiUJsvMWKDlDh+cLOKM6EBTorE8GTECfMY+HUy74nH7xdkJ2xQm6PjO2wJVtcgCW377Jfn7IJqMhmlhA6fnkguyb58S5NkwwSynFizm7GidtbAxTeaIHimB3B6ImWUQu/maiWrWpMZGyqoC+l3+zQ/jg5Pam9Crtff8odFNT/tvwVGMTxuVkUxYRZ87XGM+G4D29xV/FGs0oqyn3Jw4SPXmg1bBymJOwmL+YogYFvJAR77MmbBUcf6SCogJzvI4Z2IFe9afMCbZaNeSD1GGh+EYCjJIKrpc9sY2ZxON1Mgv1bQ9FnSrDxyCUYEsshh8x9AaAFcYdGRGc6V0IT/5gopH3gf+XC+Q2OQHGC5oiaJ0+R4BoT3YuxEYfpBHvrpWk30Ug8C9ZgxoGK2xjabKiJ/2LlKe+xHoe77ZWZCkc1RocZnSHFBaFgaQrzppWsty04WGHl5fIVgH1Q=
bucket: "datacube-core-deployment"
region: "ap-southeast-2"
local_dir: dist
upload_dir: datacube
skip_cleanup: true
on:
all_branches: true # Let the condition below decide if the branch is to be deployed
condition: $TRAVIS_BRANCH = "develop" || ! -z "${TRAVIS_TAG}" # develop branch or tags
repo: opendatacube/datacube-core
python: "3.6"
- provider: pypi
user: damien.ayers
password:
secure: "D868pBc2xCF67O2MjLc+OeuIJjIFxSOEhmm7D7lmWqqkJPf+af8qmIBmjJQoyegpiI0n6wwORG65V7E0rCvJlcNtbDwcCYNbGYoFqptZ1OjRedSjr72Vn+45hkgXcyqCyuNf9kikCZv3VkR4yLvput5j9glHAESarrKAQahLdObzJ1cHdPokEPYD1ibyT+wM5jmQJx5Q1Cp3P+c7EE7DTm/g1HL9g4vAx/b729dMVodGrly0gRzH99ivKDMUaUcMRlIABFJvl4qxNn6O7X3SUaEzqKy2gqMzCcjlqwU4rrfTizy5fxPD7r2RJ3RZFv1iPMGF1qLCutN6JzBZltKHVcObUXmm+5ZEGcarpzllkp4gmFcSI47TLLMgQ2nn9UVfmeYqAnbBkjNLZS4/8CfhZFn/QY0gqmZUSo8sdwSqOgACbMwUN5F0qdm/Cq66kS/0iTM4WeShYrhkDX5txFQM11DVPC3fuxs2PhastnwBMPybhEqj0dhCOS1u4bStJN2vAygFTkuHWEZYsI4tyyXb6q1rtx6palbKgTS1UI/+HCh0fhdBPMTjciFldWxkf9ZyVMMcxKSEavqfan78OMfXo2xnn3HgsyiOXtKzrIngPt/8amKIQ7L2cjdG/bGxE9TtH2wU9hLk4g7BQDR13lv8s3l4DsW/6B5lO2lodZ14nfE="
distributions: sdist bdist_wheel
on:
branch: stable
tags: true
python: 3.6
repo: opendatacube/datacube-core
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=