From 5ff340ceeb0090e7e24a73300e9a9f9b78478365 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Sun, 3 Mar 2019 21:39:25 -0400 Subject: [PATCH] try deploy --- .circleci/config.yml | 52 ++++++++++++++++++++------------------------ README.md | 4 ++++ codecov.yml | 8 +++++++ 3 files changed, 35 insertions(+), 29 deletions(-) create mode 100644 codecov.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 9b25512..71dfe60 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: /.*/ diff --git a/README.md b/README.md index 0025166..5a04d9d 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..c61977e --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +comment: off + +coverage: + status: + project: + default: + target: auto + threshold: 5