Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
try deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Mar 4, 2019
1 parent 36fdc16 commit 5ff340c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
52 changes: 23 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,46 +45,40 @@ jobs:
- persist_to_workspace:
root: .
paths:
- tests
- package.zip

"test-package":
deploy:
docker:
- image: lambci/lambda:build-python3.6
- image: hashicorp/terraform:light
environment:
- GDAL_DATA=/var/task/share/gdal
- PYTHONWARNINGS=ignore
- GDAL_CACHEMAX=75%
- VSI_CACHE=TRUE
- VSI_CACHE_SIZE=536870912
- CPL_TMPDIR="/tmp"
- GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES
- GDAL_HTTP_MULTIPLEX=YES
- GDAL_HTTP_VERSION=2
- GDAL_DISABLE_READDIR_ON_OPEN=TRUE
- CPL_VSIL_CURL_ALLOWED_EXTENSIONS=".TIF,.ovr,.jp2,.tif"
working_directory: /var/task/
- TERRAFORM_ENVIRONMENT=production
working_directory: ~/remotepixel-tiler
steps:
- checkout
- attach_workspace:
at: /var/task/
- run: unzip -q package.zip -d /var/task/
- run: pip install pytest pytest-cov
- run: py.test tests --cov remotepixel_tiler

at: ~/remotepixel-tiler
- run:
name: terraform deploy
command: |
terraform init
terraform plan -auto-approve --var token=${RPIX_SECRET_TOKEN}
workflows:
version: 2
build_and_deploy:
build_package_deploy:
jobs:
- "python-3.6"
- package:
requires:
- "python-3.6"
# - deploy:
# requires:
# - "package"
# filters:
# tags:
# only: /^[0-9]+.*/
# branches:
# ignore: /.*/
# filters:
# tags:
# only: /.*/
- deploy:
requires:
- package
# filters:
# tags:
# only: /^[0-9]+.*/
# branches:
# ignore: /.*/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# remotepixel-tiler

[![CircleCI](https://circleci.com/gh/RemotePixel/remotepixel-tiler.svg?style=svg)](https://circleci.com/gh/RemotePixel/remotepixel-tiler)

[![codecov](https://codecov.io/gh/RemotePixel/remotepixel-tiler/branch/master/graph/badge.svg)](https://codecov.io/gh/RemotePixel/remotepixel-tiler)

Sentinel / Landsat / CBERS / COGEO Serverless dynamic tiler

Bundle of `landsat-tiler`, `sentinel-tiler`, `cbers-tiler` and `cogeo-tiler` powering RemotePixel [viewer](https://viewer.remotepixel.ca).
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
comment: off

coverage:
status:
project:
default:
target: auto
threshold: 5

0 comments on commit 5ff340c

Please sign in to comment.