Skip to content

Commit 0c6a1dc

Browse files
authored
chore: Add AWS CodeBuild buildspec (#125)
* chore: Add AWS CodeBuild buildspec Adding buildspec to batch build multiple JDK environments * corretto8 * corretto11 * openjdk8 * openjdk11 Remove the Codecov upload from Travis, and add it to CodeBuild. It needs to be in a separate script because of the way that CodeBuild parses YAML. The `(` breaks the parser and gives `Syntax error: "(" unexpected`
1 parent fed2f10 commit 0c6a1dc

File tree

7 files changed

+93
-3
lines changed

7 files changed

+93
-3
lines changed

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ jdk:
44
- openjdk11
55
install: /bin/true
66
script: mvn install --quiet
7-
after_success:
8-
# https://docs.codecov.io/docs/about-the-codecov-bash-uploader
9-
- bash <(curl -s https://codecov.io/bash)
7+

buildspec.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 0.2
2+
3+
batch:
4+
fast-fail: false
5+
build-list:
6+
- identifier: openjdk8
7+
buildspec: codebuild/openjdk8.yml
8+
env:
9+
env:
10+
image: aws/codebuild/standard:3.0
11+
- identifier: openjdk11
12+
buildspec: codebuild/openjdk11.yml
13+
env:
14+
env:
15+
image: aws/codebuild/standard:3.0
16+
- identifier: corretto8
17+
buildspec: codebuild/corretto8.yml
18+
env:
19+
env:
20+
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0
21+
- identifier: corretto11
22+
buildspec: codebuild/corretto11.yml
23+
env:
24+
env:
25+
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0

codebuild/codecov.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/bin/bash
2+
# https://docs.codecov.io/docs/about-the-codecov-bash-uploader
3+
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN

codebuild/corretto11.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 0.2
2+
3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
java: corretto11
11+
build:
12+
commands:
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

codebuild/corretto8.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 0.2
2+
3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
java: corretto8
11+
build:
12+
commands:
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

codebuild/openjdk11.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 0.2
2+
3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
java: openjdk11
11+
build:
12+
commands:
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

codebuild/openjdk8.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 0.2
2+
3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
java: openjdk8
11+
build:
12+
commands:
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

0 commit comments

Comments
 (0)