Debian Codegraph @

crt/s2n/codebuild/spec/buildspec_valgrind.yml

raw symbols SCIP
1 ---
2 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. A copy of the License is
6 # located at
7 #
8 # http://aws.amazon.com/apache2.0/
9 #
10 # or in the "license" file accompanying this file. This file is distributed on an
11 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied. See the License for the specific language governing permissions and
13 # limitations under the License.
14 version: 0.2
15
16 batch:
17 build-list:
18 - identifier: gcc_awslc
19 env:
20 compute-type: BUILD_GENERAL1_XLARGE
21 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu24
22 variables:
23 S2N_LIBCRYPTO: awslc
24 COMPILER: gcc
25 - identifier: gcc_awslc_fips
26 env:
27 compute-type: BUILD_GENERAL1_XLARGE
28 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu24
29 variables:
30 S2N_LIBCRYPTO: awslc-fips-2022
31 COMPILER: gcc
32 - identifier: gcc_openssl_3_0
33 env:
34 compute-type: BUILD_GENERAL1_XLARGE
35 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu22codebuild
36 variables:
37 S2N_LIBCRYPTO: openssl-3.0
38 COMPILER: gcc
39 - identifier: gcc_openssl_3_fips
40 env:
41 compute-type: BUILD_GENERAL1_XLARGE
42 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu22codebuild
43 variables:
44 S2N_LIBCRYPTO: openssl-3.0-fips
45 COMPILER: gcc
46 - identifier: gcc_openssl_1_1_1
47 env:
48 compute-type: BUILD_GENERAL1_XLARGE
49 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu24
50 variables:
51 S2N_LIBCRYPTO: openssl-1.1.1
52 COMPILER: gcc
53 - identifier: gcc_openssl_1_0_2
54 env:
55 compute-type: BUILD_GENERAL1_XLARGE
56 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu22codebuild
57 variables:
58 S2N_LIBCRYPTO: openssl-1.0.2
59 COMPILER: gcc
60 - identifier: gcc_openssl_1_0_2_fips
61 env:
62 compute-type: BUILD_GENERAL1_XLARGE
63 image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu22codebuild
64 variables:
65 S2N_LIBCRYPTO: openssl-1.0.2-fips
66 COMPILER: gcc
67
68 phases:
69 pre_build:
70 commands:
71 - |
72 if [ -d "third-party-src" ]; then
73 cd third-party-src;
74 fi
75 - /usr/bin/$COMPILER --version
76 build:
77 on-failure: ABORT
78 commands:
79 - |
80 cmake . -Bbuild \
81 -DCMAKE_C_COMPILER=/usr/bin/$COMPILER \
82 -DCMAKE_PREFIX_PATH=/usr/local/$S2N_LIBCRYPTO \
83 -DCMAKE_BUILD_TYPE=RelWithDebInfo
84 - cmake --build ./build -- -j $(nproc)
85 post_build:
86 on-failure: ABORT
87 commands:
88 - |
89 S2N_VALGRIND=1 \
90 CTEST_PARALLEL_LEVEL=$(nproc) \
91 CTEST_OUTPUT_ON_FAILURE=1 \
92 cmake --build build/ --target test \
93 -- ARGS="--test-action memcheck"
94 - cd codebuild/bin
95 - python3 s2n_open_fds_test.py $CODEBUILD_SRC_DIR/build/Testing/Temporary