From baaf96d196c08b9885300a3303bac7ff28525532 Mon Sep 17 00:00:00 2001 From: JT Paasch Date: Wed, 9 Jun 2021 09:34:17 -0400 Subject: [PATCH 1/2] Adding initial .gitlab-ci.yml --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..6c0ed17f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +# This specifies the docker image to run CI jobs in. +image: "binaryanalysisplatform/bap:latest" + +# This is a CI job: it will run the tests for WP. +run_wp_tests: + + tags: + - docker # This must be tagged like this, so docker CI runners pick it up. + + script: + + # Install some dependencies. + - sudo -E apt install -y curl vim + + # Run the tests in the `wp` sudirectory. + - make test -C wp + +# This is another CI job: it will build `bildb`. +build_bildb: + + tags: + - docker # Must be tagged lik this for the docker CI runners to see it. + + script: + + # Build `bildb` in the `bildb` subdirectory. + - make -C bildb + From ea1e353ec9e4c2c897351c90053be45eb106561a Mon Sep 17 00:00:00 2001 From: JT Paasch Date: Mon, 14 Jun 2021 09:06:52 -0400 Subject: [PATCH 2/2] Clean up comments in .gitlab-ci.yml --- .gitlab-ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c0ed17f..d223409e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,28 +1,23 @@ -# This specifies the docker image to run CI jobs in. +# The docker image to use to run the CI jobs. +# NOTE: Jobs must be tagged as `docker` to get picked up +# by the CI docker runners. image: "binaryanalysisplatform/bap:latest" -# This is a CI job: it will run the tests for WP. +# JOB: run the tests for WP. run_wp_tests: tags: - - docker # This must be tagged like this, so docker CI runners pick it up. + - docker script: - - # Install some dependencies. - - sudo -E apt install -y curl vim - - # Run the tests in the `wp` sudirectory. - make test -C wp -# This is another CI job: it will build `bildb`. +# JOB: build BilDB. build_bildb: tags: - - docker # Must be tagged lik this for the docker CI runners to see it. + - docker script: - - # Build `bildb` in the `bildb` subdirectory. - make -C bildb