Skip to content

Commit

Permalink
ci: buildspec for qemu ktls test
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Aug 31, 2023
1 parent 5d5400a commit a148f78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions codebuild/spec/buildspec_ktls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 0.2
phases:
install:
commands:
- apt update
- apt upgrade -y
- apt install -y qemu qemu-system-x86 wget cloud-image-utils
pre_build:
commands:
- aws s3 --quiet sync s3://s2n-ktls-testing ./qemu
- cd qemu; bash ./run.sh; cd ..
- rsync -avz --exclude=qemu --exclude=tests/fuzz -e 'ssh -p 2222' . codebuild@localhost:/home/codebuild/s2n-tls
build:
commands:
- codebuild-breakpoint
- ssh -p 2222 codebuild@localhost "cd s2n-tls; sudo modprobe tls; nix develop .#openssl111 --command bash -c 'source ./nix/shell.sh && clean && configure && build && unit'"
1 change: 1 addition & 0 deletions nix/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function configure {
-DS2N_INTEG_NIX=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo

}

function build {
Expand Down

0 comments on commit a148f78

Please sign in to comment.