diff --git a/.gitlab-ci-benchmark.yml b/.gitlab-ci-benchmark.yml new file mode 100755 index 0000000..fc43fd5 --- /dev/null +++ b/.gitlab-ci-benchmark.yml @@ -0,0 +1,23 @@ +stages: + - build + +variables: + DOCKER_DRIVER: overlay # faster docker builds, see https://gitlab.com/gitlab-org/gitlab-ce/issues/21374 + GIT_DEPTH: "16" + GIT_STRATEGY: fetch + GIT_SUBMODULE_STRATEGY: recursive + DEBIAN_PACKAGE_TARGET_AMD64: "x86_64-unknown-linux-musl" + DEBIAN_PACKAGE_TARGET_ARM64: "aarch64-unknown-linux-musl" + DEBIAN_PACKAGE_TARGET_ARMHF: "armv7-unknown-linux-musleabihf" + PACKAGES: # set to package:binary pairs + PROFILE: "release" + +benchmark: + stage: build + tags: [$RUNNER_TAG] + image: bitpowder.com:2444/bitpowder/docker-build/rust-stable:main + script: + - env cargo +stable test --features energy-measurements --release $TEST_NAME $TEST_ARGS -- --nocapture --test-threads 1 + artifacts: + paths: + - bin/* diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100755 index 0000000..d5da690 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,7 @@ +include: "/.gitlab-ci-benchmark.yml" + +variables: + PACKAGES: + EXPORT_DOCKER_ON: "domain.com" + BUILD_PACKAGES_ON: "domain.com" + RUNNER_TAG: docker