Skip to content

Commit fc3af3b

Browse files
committed
chore: add codecov script
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 2007202 commit fc3af3b

File tree

6 files changed

+36
-7
lines changed

6 files changed

+36
-7
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
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+

codebuild/codecov.sh

Lines changed: 3 additions & 0 deletions
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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
version: 0.2
22

3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
37
phases:
48
install:
59
runtime-versions:
610
java: corretto11
711
build:
812
commands:
9-
- mvn install
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

codebuild/corretto8.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
version: 0.2
22

3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
37
phases:
48
install:
59
runtime-versions:
610
java: corretto8
711
build:
812
commands:
9-
- mvn install
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

codebuild/openjdk11.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
version: 0.2
22

3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
37
phases:
48
install:
59
runtime-versions:
610
java: openjdk11
711
build:
812
commands:
9-
- mvn install
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

codebuild/openjdk8.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
version: 0.2
22

3+
env:
4+
secrets-manager:
5+
CODECOV_TOKEN: "codecov/token/aws/aws-dynamodb-encryption-java:CODECOV_TOKEN"
6+
37
phases:
48
install:
59
runtime-versions:
610
java: openjdk8
711
build:
812
commands:
9-
- mvn install
13+
- mvn install
14+
post_build:
15+
commands:
16+
- bash codebuild/codecov.sh

0 commit comments

Comments
 (0)