Skip to content
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

Remove codebuild hacks and move to the standard codebuild image. #1275

Merged
merged 2 commits into from
May 31, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions buildspecs/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

build:
commands:
- mvn install -P quick -pl :sdk-benchmarks --am
Expand Down
4 changes: 4 additions & 0 deletions buildspecs/better-integ-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

build:
commands:
- python scripts/run-integ-test
6 changes: 5 additions & 1 deletion buildspecs/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

build:
commands:
- mvn clean install -D maven.wagon.httpconnectionManager.maxPerRoute=2
- mvn clean install -T1C
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- |
Expand Down
6 changes: 5 additions & 1 deletion buildspecs/integ-test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

build:
commands:
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbdocument-v1,!:dynamodbmapper-v1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2 -T1C
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbdocument-v1,!:dynamodbmapper-v1 -T1C
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- |
Expand Down
6 changes: 5 additions & 1 deletion buildspecs/on-demand-integ-test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

build:
commands:
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2 --fail-at-end
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 --fail-at-end
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- |
Expand Down
5 changes: 4 additions & 1 deletion buildspecs/release-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

commands:
- pip install awscli --upgrade --user

Expand All @@ -11,7 +14,7 @@ phases:

build:
commands:
- mvn install -P quick -D maven.wagon.httpconnectionManager.maxPerRoute=2 -T1C
- mvn install -P quick -T1C
- mvn install javadoc:aggregate -B -Ppublic-javadoc -Dcheckstyle.skip -Dspotbugs.skip -DskipTests -Ddoclint=none -pl '!:dynamodbdocument-v1,!:dynamodbmapper-v1,!:protocol-tests,!:protocol-tests-core,!:codegen-generated-classes-test,!:sdk-benchmarks,!:module-path-tests,!:test-utils,!:http-client-tests,!:tests-coverage-reporting'
- RELEASE_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
-
Expand Down
4 changes: 4 additions & 0 deletions buildspecs/release-to-github.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

pre_build:
commands:
- git config --global user.name "AWS"
Expand Down
3 changes: 3 additions & 0 deletions buildspecs/release-to-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

commands:
- pip install awscli --upgrade --user

Expand Down
4 changes: 4 additions & 0 deletions buildspecs/update-master-from-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

pre_build:
commands:
- git config --global user.name "AWS"
Expand Down
4 changes: 4 additions & 0 deletions buildspecs/update-snapshot-version.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

pre_build:
commands:
- git config --global user.name "AWS"
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-integ-test
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def run_tests(modules):
modules_to_include = modules_to_include[:-1]

# build necessary dependencies first
check_call(["mvn", "clean", "install", "-pl", modules_to_include, "-P", "quick", "--am", "-Dmaven.wagon.httpconnectionManager.maxPerRoute=2"])
check_call(["mvn", "clean", "install", "-pl", modules_to_include, "-P", "quick", "--am"])
check_call(["mvn", "verify", "-pl", modules_to_include, "-P", "integration-tests", "-Dfailsafe.rerunFailingTestsCount=1"])

if __name__ == "__main__":
Expand Down