Skip to content

Commit

Permalink
Clean up old CI
Browse files Browse the repository at this point in the history
  • Loading branch information
krtab committed Oct 29, 2024
1 parent 9d5ace7 commit 54b0c26
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 152 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-pebble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:


- name: Run pebble based agnos tester
run: nix-shell --pure --run agnos-test-script
run: nix-shell integration-testing/shell.nix --pure --run agnos-test-script
16 changes: 1 addition & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,4 @@ build-release:
strip target/release/agnos
strip target/release/agnos-generate-accounts-keys
ln target/release/agnos agnos
ln target/release/agnos-generate-accounts-keys agnos-generate-accounts-keys

compose: dockers
$(MAKE) -C test-docker compose

dockers: agnos-docker pebble-docker

agnos-docker:
docker buildx build . -f test-docker/agnos/Dockerfile -t agnos

bind9-docker:
docker buildx build test-docker/bind9 -f test-docker/bind9/Dockerfile -t bind9

pebble-docker:
docker buildx build test-docker/pebble -f test-docker/pebble/Dockerfile -t pebble
ln target/release/agnos-generate-accounts-keys agnos-generate-accounts-keys
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions shell.nix → integration-testing/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

let
inherit (pkgs) lib;
pebble_cert = ./test-docker/pebble/cert.pem;
pebble_priv_key = ./test-docker/pebble/key.pem;
pebble_cert = ./pebble/cert.pem;
pebble_priv_key = ./pebble/key.pem;
pebble_config = pkgs.writeTextFile {
name = "pebble-config.json";
text = builtins.toJSON
Expand All @@ -20,10 +20,11 @@ let
url = "https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f17855a4dc21156cfe1694c31d7d1792e/wait-for-it.sh";
hash = "sha256-t6BPON4eUedFXs9jFRyMfkBb0tRaLU4W9kGdtzehJdY=";
};
agnos_config = ./test-docker/agnos/config_test.toml;
agnos_config = ./agnos/config_test.toml;
test-script = pkgs.writeShellScriptBin "agnos-test-script"
''
set -xve
trap "trap - SIGTERM; [ -n \"$(jobs -p)\" ] && kill -- -$$" SIGINT SIGTERM EXIT
${pkgs.pebble}/bin/pebble -config ${pebble_config} -strict -dnsserver 127.0.0.1:8053 &
export CARGO_TARGET_DIR=target_nix_test
${pkgs.cargo}/bin/cargo build --release
Expand All @@ -35,7 +36,6 @@ let
$OLDWORKDIR/$CARGO_TARGET_DIR/release/agnos --debug --acme-url https://127.0.0.1:14000/dir --acme-serv-ca ${pebble_cert} ${agnos_config}
cd $OLDWORKDIR
rm -rf $WORKDIR
killall pebble
'';
in
pkgs.mkShell {
Expand Down
2 changes: 0 additions & 2 deletions test-docker/Makefile

This file was deleted.

37 changes: 0 additions & 37 deletions test-docker/agnos/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions test-docker/bind9/Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions test-docker/bind9/agnos.test.zone

This file was deleted.

4 changes: 0 additions & 4 deletions test-docker/bind9/named.conf.local

This file was deleted.

9 changes: 0 additions & 9 deletions test-docker/bind9/named.conf.options

This file was deleted.

39 changes: 0 additions & 39 deletions test-docker/docker-compose.yml

This file was deleted.

5 changes: 0 additions & 5 deletions test-docker/pebble/Dockerfile

This file was deleted.

0 comments on commit 54b0c26

Please sign in to comment.