forked from GeoscienceAustralia/digitalearthau
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (94 loc) · 4.7 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
---
dist: trusty
language: python
python:
- '3.6'
sudo: true
addons:
apt:
packages:
- gdal-bin
- gfortran
- libatlas-base-dev
- libatlas-dev
- libgdal1-dev
- liblapack-dev
- libproj-dev
- libxml2-dev
- libxslt-dev
- pandoc
- shellcheck
postgresql: "9.6"
services:
- postgresql
env:
global:
- CC_TEST_REPORTER_ID=7fabf748ee918a406d3cd9dfeace7d4f599a4d9c3c70c65e877e8448cc0d4a3b
cache:
apt: true
directories:
- $HOME/.cache/pip
before_install:
- createdb dea_integration
install:
- mkdir pdstools
- pushd pdstools
- travis_retry wget https://raw.githubusercontent.com/GeoscienceAustralia/pds-tools/988b0b6e8495f9224c384ec0ac4c720c054d022c/pdsinfo.c
- clang -O pdsinfo.c -lm -o pdsinfo
- export PATH="$(pwd):${PATH}"
- popd
- export CPLUS_INCLUDE_PATH="/usr/include/gdal"
- export C_INCLUDE_PATH="/usr/include/gdal"
- travis_retry pip install pylint yamllint pytest-cov pycodestyle GDAL==1.10.0
# Dask.array seems to need this?
- travis_retry pip install cloudpickle
- travis_retry pip install git+https://github.com/GeoscienceAustralia/eo-datasets.git
- travis_retry pip install git+https://github.com/opendatacube/datacube-core.git@develop
- travis_retry pip install -e .
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:
- ./check-code.sh integration_tests
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- pushd docs
- bash ./deploy.sh
- popd
before_deploy:
- pip install s3pypi
- python setup.py sdist --dist-dir dist/$TRAVIS_PYTHON_VERSION
- DEPLOY_PATH=$TRAVIS_REPO_SLUG/${TRAVIS_TAG:-$TRAVIS_BRANCH} # eg GeoscienceAustralia/digitalearthau/datacube-1.0.0
# On success, upload a package to an S3 Bucket. Used for continuous deployment.
deploy:
# Deploy the source dist tarball to s3 for tags or the develop branch, so that it can be installed on other systems
# For tags, the object will be GeoscienceAustralia/digitalearthau/datacube-1.0.0/3.6/digitalearthau-1.0.0.tar.gz
# For develop, the object will be GeoscienceAustralia/digitalearthau/develop/3.6/digitalearthau-1.0.0+91.g43bd4e12.tar.gz
- provider: s3
access_key_id: "AKIAJMZN4F5L5KXPQKVQ"
secret_access_key:
secure: IbZqx3lZwAegcfcFAxiitr4gwc3VPYCd5wF0Su5u2hPktycd5ZLOQ40BZFqGDy/2D4jFsVJnP4lK3W2ZxJ09rkY/z5rSMQPmEbFv3ubNvEx/ozhGZq8W4RmB8dsktuhiCUW4AhjJl06cDe7f+EByRJo0P76MKXk1+kbRyehoDwt++e2fcddoQ1RTDeHgDVVCTACNBR2vP3rIMZY8C/Djxoy48vebmh8L2XcCpXfogbS2k7APKigxIXEMsl86LfHIcecBQjXUt0XcU7EDvbz6xgzUiXWdGMtrJByYfVfjGl+Gm/9zUjOxrjJBz01CEU+qCspM6bLHWkXcOSED3HNVuMAmSHf+dFAY8lormS1Y2+HUETnPiFOOOAXt5yMbVuk4VIkWo9KaYPInuWdTpbE81XTkudeYl0PuZRk+aATE313vcR5aJYqP4iPiKVvFQSKcrm78wMJ5YZRijpvsLQ5HW1TZjTAC4DjqCID+vRBc88OB2auouZDhSe7vYoLRS+0eSm+6rh/E5/hdWtKw0IFOAugizxuOcki0c9iFoMIMshQphnc6oq3WdgCq/XoM3xHx9rrmqLhf8bN61iXj3IkAfPBlaaLqZwXoxJBwsU1z4J1p0LmGwFunNzhaqQAJCkGq1VFOLSj5maCgdPKouOWMv7vkM5T2TJhB8I1oWJ11kPE=
bucket: "datacube-core-deployment"
region: "ap-southeast-2"
local_dir: dist
upload_dir: "$DEPLOY_PATH"
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: GeoscienceAustralia/digitalearthau
python: "3.6"
- provider: script
script: s3pypi --bucket datacube-core-deployment
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: GeoscienceAustralia/digitalearthau
python: "3.6"
notifications:
slack:
on_success: change
on_failure: always
secure: lsNEGmbGTX8Dcu4ruuEchsrUjqtNisrnbE5qq7hWm0xYseav5RdokfJhXw2k++qOiKJntwqM5BrE1DQLDdhEEuViiy1Q8dyqnjIfiV41WjIPCm3qtBRvg5J+pHi6aBn0rNHRd8scCZEIX3BecLpkX61LDcX0Q0HTIe4bAccpIg7TjZk2Viln2G2oEfKkaLlXnF2SY2dUdkUrEDql+rGc1j1JGFZHwSEEZEF+dBX73wQPPHQRAhF5yL76qF2A1Ceh9v2ZT/4DcX9MEcZzHxc83zwiDL9/0UKb7cKDQk4kqqtq4E2l99HkTwdZmsjPnFvhh1Rt0dXYuwdEBkx/s9A+1ndgat7a9strOhnKZt8Bf6zWLEHab6opEZfEAn4+y2hotx3UKHeQWGCZ0GeWFQg+BUjL1gq7wGnmCjc+990nL74hk2FCKS65RXR77oY/D3jlWDIRnkC1hy7YH21C1sJH66MyyqbA1aPCOtHfGxQ5/EoIp9bN7sZHwz/VPX7YrGnf8Ams+S3hZJTL0N+YCYR2QLYw8uVZAw48zOb7tmnevpsAxlBHHTKUoYTzv8SpRdK1AhNVgIHmdk3dTsVvbs2MpjUsDKqM8rKqlb77KzQhYYVOpQIQZwDlqUT42UMW4s+wiVFgpwBFUddbKgyyh99lF2eIpW6Oi0Llc+5yCnULs8A=