Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish GT Contrib artifacts automatically via CircleCI
Using the same general strategy as geotrellis/geotrellis-server and geotrellis/maml Update sbt runner to commit 5fd24eb dwijnand/sbt-extras@5fd24eb Switch tests to use a docker-compose setup for ease of use and consistency with other projects. Tests should now be run from ./scripts/test Add circleci config running scripts/cibuild We use the latest available machine image so we can run our existing docker-compose setup. A writeup considering various options: #222 (comment) Update to azavea-hosted openjdk-gdal image Publish build artifacts to OSS SonaType Nexus Remove old Travis CI configuration Run benchmarks with scripts/benchmark and cleanup the order of operations in the Dockerfile - Move all package installation to beginning and run in one step for better layer caching - Move all external dependency additions before sbt and other ops to improve layer caching - Reorder ops so we don't have to modify WORKDIR a bunch
- Loading branch information
1 parent
de08d90
commit 1f3ed5c
Showing
29 changed files
with
542 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
aliases: | ||
- &restore_sbt_cache | ||
key: sbt-cache-{{ checksum "/tmp/scala_version" }} | ||
|
||
- &save_sbt_cache | ||
key: sbt-cache-{{ checksum "/tmp/scala_version" }}-{{ epoch }} | ||
paths: | ||
- "~/.ivy2/cache" | ||
- "~/.sbt" | ||
- "~/.cache/coursier" | ||
|
||
- &run_cibuild | ||
- checkout | ||
- run: echo "${SCALA_VERSION}" > /tmp/scala_version | ||
- restore_cache: *restore_sbt_cache | ||
- run: | ||
name: Executing cibuild | ||
command: ./scripts/cibuild | ||
- save_cache: *save_sbt_cache | ||
|
||
- &run_cipublish | ||
- checkout | ||
- run: echo "${SCALA_VERSION}" > /tmp/scala_version | ||
- restore_cache: *restore_sbt_cache | ||
- run: | ||
name: "Import signing key" | ||
command: | | ||
echo "${GPG_KEY}" | base64 -d > signing_key.asc && \ | ||
gpg --batch \ | ||
--passphrase "${GPG_PASSPHRASE}" \ | ||
--import signing_key.asc | ||
- run: | ||
name: Executing cipublish | ||
command: ./scripts/cipublish | ||
|
||
# Build environments | ||
- &openjdk8-scala2_11_12_environment | ||
machine: | ||
image: ubuntu-1604:201903-01 | ||
environment: | ||
SCALA_VERSION: 2.11.12 | ||
|
||
- &openjdk8-scala2_12_8_environment | ||
machine: | ||
image: ubuntu-1604:201903-01 | ||
environment: | ||
SCALA_VERSION: 2.12.8 | ||
|
||
version: 2 | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- "openjdk8-scala2.11.12": | ||
filters: # required since `openjdk8-scala2.11.12_deploy` has tag filters AND requires `openjdk8-scala2.11.12` | ||
tags: | ||
only: | ||
- /^(.*)$/ | ||
- "openjdk8-scala2.12.8": | ||
filters: # required since `openjdk8-scala2.12.8_deploy` has tag filters AND requires `openjdk8-scala2.12.8` | ||
tags: | ||
only: | ||
- /^(.*)$/ | ||
- "openjdk8-scala2.11.12_deploy": | ||
requires: | ||
- "openjdk8-scala2.11.12" | ||
filters: | ||
tags: | ||
only: | ||
- /^(.*)$/ | ||
branches: | ||
only: | ||
- develop | ||
- /release\/.*/ | ||
- /hotfix\/.*/ | ||
- "openjdk8-scala2.12.8_deploy": | ||
requires: | ||
- "openjdk8-scala2.12.8" | ||
filters: | ||
tags: | ||
only: | ||
- /^(.*)$/ | ||
branches: | ||
only: | ||
- develop | ||
- /release\/.*/ | ||
- /hotfix\/.*/ | ||
|
||
jobs: | ||
"openjdk8-scala2.11.12": | ||
<<: *openjdk8-scala2_11_12_environment | ||
steps: *run_cibuild | ||
|
||
"openjdk8-scala2.12.8": | ||
<<: *openjdk8-scala2_12_8_environment | ||
steps: *run_cibuild | ||
|
||
"openjdk8-scala2.11.12_deploy": | ||
<<: *openjdk8-scala2_11_12_environment | ||
steps: *run_cipublish | ||
|
||
"openjdk8-scala2.12.8_deploy": | ||
<<: *openjdk8-scala2_12_8_environment | ||
steps: *run_cipublish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Release | ||
about: When ready to cut a release | ||
title: Release X.Y.Z | ||
labels: release | ||
assignees: "" | ||
--- | ||
|
||
- [ ] Start a new release branch: | ||
|
||
```bash | ||
$ git flow release start X.Y.Z | ||
``` | ||
|
||
- [ ] Rotate `CHANGELOG.md` (following [Keep a Changelog](https://keepachangelog.com/) principles) | ||
- [ ] Ensure outstanding changes are committed: | ||
|
||
```bash | ||
$ git status # Is the git staging area clean? | ||
$ git add CHANGELOG.md | ||
$ git commit -m "X.Y.Z" | ||
``` | ||
|
||
- [ ] Publish the release branch: | ||
|
||
```bash | ||
$ git flow release publish X.Y.Z | ||
``` | ||
|
||
- [ ] Ensure that CI checks pass | ||
- [ ] Finish and publish the release branch: | ||
- When prompted, keep default commit messages | ||
- Use `X.Y.Z` as the tag message | ||
|
||
```bash | ||
$ git flow release finish -p X.Y.Z | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
# Overview | ||
## Overview | ||
|
||
Brief description of what this PR does and why it's important | ||
Brief description of what this PR does, and why it is needed. | ||
|
||
## Demo | ||
### Checklist | ||
|
||
Optional. Screenshots, etc. | ||
- [ ] Description of PR is in an appropriate section of the CHANGELOG and grouped with similar changes if possible | ||
|
||
## Notes | ||
### Demo | ||
|
||
Optional. Extra context, ancillary topics, alternative strategies that didn't work out, etc. | ||
Optional. Screenshots, `http` examples, etc. | ||
|
||
## Testing Instructions | ||
### Notes | ||
|
||
Optional. Include if there's more specifics than "CI tests should pass". | ||
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else. | ||
|
||
## Checklist | ||
## Testing Instructions | ||
|
||
- [ ] Add entry to CHANGELOG.md | ||
- How to test this PR | ||
- Prefer bulleted description | ||
- Start after checking out this branch | ||
- Include any setup required, such as bundling scripts, restarting services, etc. | ||
- Include test case, and expected output | ||
|
||
Closes #XXX |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
# GeoTrellis Contributions repo | ||
|
||
[![Build Status](https://travis-ci.org/geotrellis/geotrellis-contrib.svg?branch=master)](https://travis-ci.org/geotrellis/geotrellis-contrib) | ||
[![CircleCI](https://circleci.com/gh/geotrellis/geotrellis-contrib/tree/develop.svg?style=svg)](https://circleci.com/gh/geotrellis/geotrellis-contrib/tree/develop) | ||
|
||
This is a repository is a place to put extra [GeoTrellis](https://github.com/locationtech/geotrellis) projects, that were not included into the main repo for various reasons. | ||
|
||
- Project names should be of the form `geotrellis-contrib-{feature}` | ||
- Project versions should start with `0.0.1` and not be tied to GeoTrellis version. | ||
- Project publishing will happen on BinTray | ||
|
||
- Project names should be of the form `geotrellis-contrib-{feature}` | ||
- Project versions should start with `0.0.1` and not be tied to GeoTrellis version. | ||
- Project publishing will happen on SonaType | ||
|
||
## Usage | ||
|
||
via `sbt`: | ||
|
||
```scala | ||
resolvers += "Azavea Public Builds" at "https://dl.bintray.com/azavea/geotrellis" | ||
... | ||
libraryDependencies ++= Seq( | ||
"com.azavea.geotrellis" %% "geotrellis-contrib-vlm" % "X.Y.Z", | ||
"com.azavea.geotrellis" %% "geotrellis-contrib-gdal" % "X.Y.Z" | ||
) | ||
``` | ||
|
||
Go to [releases](https://github.com/geotrellis/geotrellis-contrib/releases) to see available versions. | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.