-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Duplicate and combine some Integ tests from travis->CodeBuild (#1889
- Loading branch information
Showing
7 changed files
with
283 additions
and
24 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
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 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,81 @@ | ||
# Config file consumed by create_project | ||
# Helpful reminder about CodeBuild provided docker images: | ||
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html | ||
[Global] | ||
stack_name: s2nIntegrationScheduled | ||
|
||
#Reusable templates - use the snippet:NAME | ||
[IntegUbuntuBoilerplateLarge] | ||
image : aws/codebuild/standard:2.0 | ||
env_type: LINUX_CONTAINER | ||
compute_type: BUILD_GENERAL1_LARGE | ||
timeout_in_min: 90 | ||
buildspec: codebuild/spec/buildspec_ubuntu_integ_openssl102.yml | ||
source_location: https://github.com/awslabs/s2n.git | ||
source_type : GITHUB | ||
source_clonedepth: 1 | ||
source_version: | ||
|
||
# Boring + GCC9, Libre + GCC6 | ||
[CodeBuild:s2nIntegrationBoringLibre] | ||
image : aws/codebuild/standard:2.0 | ||
env_type: LINUX_CONTAINER | ||
compute_type: BUILD_GENERAL1_LARGE | ||
timeout_in_min: 90 | ||
buildspec: codebuild/spec/buildspec_ubuntu_integ_boringlibre.yml | ||
source_location: https://github.com/awslabs/s2n.git | ||
source_type : GITHUB | ||
source_clonedepth: 1 | ||
source_version: | ||
env: TESTS=integration BUILD_S2N=true | ||
|
||
# OpenSSL111 + GCC6 + Corked and notCorked + Gcc4.8 | ||
[CodeBuild:s2nIntegrationOpenSSL111Plus] | ||
image : aws/codebuild/standard:2.0 | ||
env_type: LINUX_CONTAINER | ||
compute_type: BUILD_GENERAL1_LARGE | ||
timeout_in_min: 90 | ||
buildspec: codebuild/spec/buildspec_ubuntu_integ_openssl111.yml | ||
source_location: https://github.com/awslabs/s2n.git | ||
source_type : GITHUB | ||
source_clonedepth: 1 | ||
source_version: | ||
env: TESTS=integration BUILD_S2N=true | ||
|
||
# OpenSSL102 Fips and notFips + GCC6 | ||
[CodeBuild:s2nIntegrationOpenSSL102Plus] | ||
image : aws/codebuild/standard:2.0 | ||
env_type: LINUX_CONTAINER | ||
compute_type: BUILD_GENERAL1_LARGE | ||
timeout_in_min: 90 | ||
buildspec: codebuild/spec/buildspec_ubuntu_integ_openssl102.yml | ||
source_location: https://github.com/awslabs/s2n.git | ||
source_type : GITHUB | ||
source_clonedepth: 1 | ||
source_version: | ||
env: TESTS=integration BUILD_S2N=true | ||
|
||
# OpenSSL102 + GCC6 + Asan and Valgrind | ||
[CodeBuild:s2nIntegrationOpenSSL102AsanValgrind] | ||
image : aws/codebuild/standard:2.0 | ||
env_type: LINUX_CONTAINER | ||
compute_type: BUILD_GENERAL1_LARGE | ||
timeout_in_min: 90 | ||
buildspec: codebuild/spec/buildspec_ubuntu_integ_openssl102_asanvalgrind.yml | ||
source_location: https://github.com/awslabs/s2n.git | ||
source_type : GITHUB | ||
source_clonedepth: 1 | ||
source_version: | ||
env: TESTS=integration BUILD_S2N=true | ||
|
||
#{"environmentVariablesOverride": [{"name": "S2N_NO_PQ","value": "true"}]} | ||
|
||
#[CodeBuild:s2nIntegrationScheduled] | ||
#snippet: IntegUbuntuBoilerplateLarge | ||
#env: TESTS=integration BUILD_S2N=true | ||
|
||
# Disabled Scheduled job (example) for tests not needing webhooks. | ||
#[CloudWatchEvent:s2n_Integration_Openssl111_Gcc48_test] | ||
#start_time: 13 | ||
#build_job_name: s2nIntegrationScheduled | ||
#input: {"environmentVariablesOverride": [{"name": "S2N_LIBCRYPTO","value": "openssl-1.1.1"},{"name": "GCC_VERSION", "value":"4.8"}]} |
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,46 @@ | ||
--- | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
# this file except in compliance with the License. A copy of the License is | ||
# located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.7 | ||
commands: | ||
- echo Entered the install phase... | ||
- echo "We need a test PPA for gcc-9." | ||
- add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
- apt-get update -o Acquire::CompressionTypes::Order::=gz | ||
- apt-get update -y | ||
- apt-get install -y --no-install-recommends gcc-6 g++-6 gcc g++ gcc-9 g++-9 | ||
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead | ||
- | | ||
if expr "${LATEST_CLANG}" != "true" >/dev/null; then | ||
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9; | ||
fi | ||
- apt-get install -y --no-install-recommends indent kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox | ||
pre_build: | ||
commands: | ||
- S2N_LIBCRYPTO=libressl GCC_VERSION=6 codebuild/bin/install_default_dependencies.sh | ||
- S2N_LIBCRYPTO=boringssl GCC_VERSION=9 codebuild/bin/install_default_dependencies.sh | ||
build: | ||
commands: | ||
- printenv | ||
- S2N_LIBCRYPTO=libressl GCC_VERSION=6 TESTS=integration codebuild/bin/s2n_codebuild.sh | ||
- S2N_LIBCRYPTO=boringssl GCC_VERSION=9 TESTS=integration codebuild/bin/s2n_codebuild.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Uploading CodeCov.io artifacts | ||
- codebuild/bin/s2n_after_codebuild.sh |
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,46 @@ | ||
--- | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
# this file except in compliance with the License. A copy of the License is | ||
# located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.7 | ||
commands: | ||
- echo Entered the install phase... | ||
- echo "We need a test PPA for gcc-9." | ||
- add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
- apt-get update -o Acquire::CompressionTypes::Order::=gz | ||
- apt-get update -y | ||
- apt-get install -y --no-install-recommends gcc g++ gcc-6 g++-6 gcc-9 g++-9 | ||
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead | ||
- | | ||
if expr "${LATEST_CLANG}" != "true" >/dev/null; then | ||
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9; | ||
fi | ||
- apt-get install -y --no-install-recommends indent kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox | ||
pre_build: | ||
commands: | ||
- S2N_LIBCRYPTO=openssl-1.0.2 codebuild/bin/install_default_dependencies.sh | ||
- S2N_LIBCRYPTO=openssl-1.0.2-fips codebuild/bin/install_default_dependencies.sh | ||
build: | ||
commands: | ||
- printenv | ||
- S2N_LIBCRYPTO=openssl-1.0.2 TESTS=integration GCC_VERSION=6 codebuild/bin/s2n_codebuild.sh | ||
- S2N_LIBCRYPTO=openssl-1.0.2-fips TESTS=integration GCC_VERSION=6 codebuild/bin/s2n_codebuild.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Uploading CodeCov.io artifacts | ||
- codebuild/bin/s2n_after_codebuild.sh |
46 changes: 46 additions & 0 deletions
46
codebuild/spec/buildspec_ubuntu_integ_openssl102_asanvalgrind.yml
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,46 @@ | ||
--- | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
# this file except in compliance with the License. A copy of the License is | ||
# located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.7 | ||
commands: | ||
- echo Entered the install phase... | ||
- echo "We need a test PPA for gcc-9." | ||
- add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
- apt-get update -o Acquire::CompressionTypes::Order::=gz | ||
- apt-get update -y | ||
- apt-get install -y --no-install-recommends gcc g++ gcc-6 g++-6 gcc-9 g++-9 | ||
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead | ||
- | | ||
if expr "${LATEST_CLANG}" != "true" >/dev/null; then | ||
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9; | ||
fi | ||
- apt-get install -y --no-install-recommends indent kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox | ||
pre_build: | ||
commands: | ||
- S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=asan GCC_VERSION=6 codebuild/bin/install_default_dependencies.sh | ||
- S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 codebuild/bin/install_default_dependencies.sh | ||
build: | ||
commands: | ||
- printenv | ||
- S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=asan GCC_VERSION=6 codebuild/bin/s2n_codebuild.sh | ||
- S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 codebuild/bin/s2n_codebuild.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Uploading CodeCov.io artifacts | ||
- codebuild/bin/s2n_after_codebuild.sh |
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,46 @@ | ||
--- | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
# this file except in compliance with the License. A copy of the License is | ||
# located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.7 | ||
commands: | ||
- echo Entered the install phase... | ||
- echo "We need a test PPA for gcc-9." | ||
- add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
- apt-get update -o Acquire::CompressionTypes::Order::=gz | ||
- apt-get update -y | ||
- apt-get install -y --no-install-recommends gcc g++ gcc-6 g++-6 gcc-4.8 g++-4.8 | ||
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead | ||
- | | ||
if expr "${LATEST_CLANG}" != "true" >/dev/null; then | ||
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9; | ||
fi | ||
- apt-get install -y --no-install-recommends indent kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox | ||
pre_build: | ||
commands: | ||
- S2N_LIBCRYPTO=openssl-1.1.1 GCC_VERSION=6 codebuild/bin/install_default_dependencies.sh | ||
build: | ||
commands: | ||
- printenv | ||
- S2N_LIBCRYPTO=openssl-1.1.1 GCC_VERSION=4.8 codebuild/bin/s2n_codebuild.sh | ||
- S2N_LIBCRYPTO=openssl-1.1.1 TESTS=integration GCC_VERSION=6 codebuild/bin/s2n_codebuild.sh | ||
- S2N_LIBCRYPTO=openssl-1.1.1 TESTS=integration GCC_VERSION=6 S2N_CORKED_IO=true codebuild/bin/s2n_codebuild.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Uploading CodeCov.io artifacts | ||
- codebuild/bin/s2n_after_codebuild.sh |