aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker
diff options
context:
space:
mode:
Diffstat (limited to '.woodpecker')
-rw-r--r--.woodpecker/debug.yaml31
-rw-r--r--.woodpecker/publish.yaml5
-rw-r--r--.woodpecker/release.yaml9
3 files changed, 17 insertions, 28 deletions
diff --git a/.woodpecker/debug.yaml b/.woodpecker/debug.yaml
index 0076feda..65dab9ab 100644
--- a/.woodpecker/debug.yaml
+++ b/.woodpecker/debug.yaml
@@ -16,32 +16,21 @@ steps:
- name: build
image: nixpkgs/nix:nixos-22.05
commands:
- - nix-build --no-build-output --attr clippy.amd64 --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
+ - nix-build -j4 --attr flakePackages.dev
- - name: unit + func tests
+ - name: unit + func tests (lmdb)
image: nixpkgs/nix:nixos-22.05
- environment:
- GARAGE_TEST_INTEGRATION_EXE: result-bin/bin/garage
- GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
commands:
- - nix-build --no-build-output --attr clippy.amd64 --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
- - nix-build --no-build-output --attr test.amd64
- - ./result/bin/garage_db-*
- - ./result/bin/garage_api-*
- - ./result/bin/garage_model-*
- - ./result/bin/garage_rpc-*
- - ./result/bin/garage_table-*
- - ./result/bin/garage_util-*
- - ./result/bin/garage_web-*
- - ./result/bin/garage-*
- - GARAGE_TEST_INTEGRATION_DB_ENGINE=lmdb ./result/bin/integration-* || (cat tmp-garage-integration/stderr.log; false)
- - nix-shell --attr ci --run "killall -9 garage" || true
- - GARAGE_TEST_INTEGRATION_DB_ENGINE=sqlite ./result/bin/integration-* || (cat tmp-garage-integration/stderr.log; false)
- - rm result
- - rm -rv tmp-garage-integration
+ - nix-build -j4 --attr flakePackages.tests-lmdb
+
+ - name: unit + func tests (sqlite)
+ image: nixpkgs/nix:nixos-22.05
+ commands:
+ - nix-build -j4 --attr flakePackages.tests-sqlite
- name: integration tests
image: nixpkgs/nix:nixos-22.05
commands:
- - nix-build --no-build-output --attr clippy.amd64 --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
+ - nix-build -j4 --attr flakePackages.dev
- nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
+ depends_on: [ build ]
diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml
index 38458264..7522d58d 100644
--- a/.woodpecker/publish.yaml
+++ b/.woodpecker/publish.yaml
@@ -20,8 +20,9 @@ steps:
- name: multiarch-docker
image: nixpkgs/nix:nixos-22.05
- secrets:
- - docker_auth
+ environment:
+ DOCKER_AUTH:
+ from_secret: docker_auth
commands:
- mkdir -p /root/.docker
- echo $DOCKER_AUTH > /root/.docker/config.json
diff --git a/.woodpecker/release.yaml b/.woodpecker/release.yaml
index baf81b0c..0678a45b 100644
--- a/.woodpecker/release.yaml
+++ b/.woodpecker/release.yaml
@@ -18,13 +18,12 @@ steps:
- name: build
image: nixpkgs/nix:nixos-22.05
commands:
- - nix-build --no-build-output --attr pkgs.${ARCH}.release --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
+ - nix-build --attr releasePackages.${ARCH} --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
- name: check is static binary
image: nixpkgs/nix:nixos-22.05
commands:
- - nix-build --no-build-output --attr pkgs.${ARCH}.release --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
- - nix-shell --attr ci --run "./script/not-dynamic.sh result-bin/bin/garage"
+ - nix-shell --attr ci --run "./script/not-dynamic.sh result/bin/garage"
- name: integration tests
image: nixpkgs/nix:nixos-22.05
@@ -60,8 +59,8 @@ steps:
environment:
DOCKER_PLATFORM: "linux/${ARCH}"
CONTAINER_NAME: "dxflrs/${ARCH}_garage"
- secrets:
- - docker_auth
+ DOCKER_AUTH:
+ from_secret: docker_auth
commands:
- mkdir -p /root/.docker
- echo $DOCKER_AUTH > /root/.docker/config.json