Skip to content

chore: Add AWS CodeBuild buildspec #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ jdk:
- openjdk11
install: /bin/true
script: mvn install --quiet
after_success:
# https://docs.codecov.io/docs/about-the-codecov-bash-uploader
- bash <(curl -s https://codecov.io/bash)

25 changes: 25 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 0.2

batch:
fast-fail: false
build-list:
- identifier: openjdk8
buildspec: codebuild/openjdk8.yml
env:
env:
image: aws/codebuild/standard:3.0
- identifier: openjdk11
buildspec: codebuild/openjdk11.yml
env:
env:
image: aws/codebuild/standard:3.0
- identifier: corretto8
buildspec: codebuild/corretto8.yml
env:
env:
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0
- identifier: corretto11
buildspec: codebuild/corretto11.yml
env:
env:
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0
3 changes: 3 additions & 0 deletions codebuild/codecov.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#/bin/bash
# https://docs.codecov.io/docs/about-the-codecov-bash-uploader
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
16 changes: 16 additions & 0 deletions codebuild/corretto11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 0.2

env:
secrets-manager:
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"

phases:
install:
runtime-versions:
java: corretto11
build:
commands:
- mvn install
post_build:
commands:
- bash codebuild/codecov.sh
16 changes: 16 additions & 0 deletions codebuild/corretto8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 0.2

env:
secrets-manager:
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"

phases:
install:
runtime-versions:
java: corretto8
build:
commands:
- mvn install
post_build:
commands:
- bash codebuild/codecov.sh
16 changes: 16 additions & 0 deletions codebuild/openjdk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 0.2

env:
secrets-manager:
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"

phases:
install:
runtime-versions:
java: openjdk11
build:
commands:
- mvn install
post_build:
commands:
- bash codebuild/codecov.sh
16 changes: 16 additions & 0 deletions codebuild/openjdk8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 0.2

env:
secrets-manager:
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"

phases:
install:
runtime-versions:
java: openjdk8
build:
commands:
- mvn install
post_build:
commands:
- bash codebuild/codecov.sh