test: Add integration tests for build and template
This commit is contained in:
parent
0a780fb9aa
commit
9636c2edc5
1 changed files with 39 additions and 12 deletions
51
Earthfile
51
Earthfile
|
|
@ -13,22 +13,23 @@ all:
|
||||||
BUILD +nightly
|
BUILD +nightly
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
ARG NIGHTLY=false
|
||||||
WAIT
|
WAIT
|
||||||
BUILD +lint
|
BUILD +lint --NIGHTLY=$NIGHTLY
|
||||||
BUILD +test
|
BUILD +test --NIGHTLY=$NIGHTLY
|
||||||
END
|
END
|
||||||
BUILD +blue-build-cli
|
BUILD +blue-build-cli --NIGHTLY=$NIGHTLY
|
||||||
BUILD +blue-build-cli-alpine
|
BUILD +blue-build-cli-alpine --NIGHTLY=$NIGHTLY
|
||||||
BUILD +installer
|
BUILD +installer --NIGHTLY=$NIGHTLY
|
||||||
|
BUILD +integration-test-template --NIGHTLY=$NIGHTLY
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
WAIT
|
BUILD +default --NIGHTLY=true
|
||||||
BUILD +lint --NIGHTLY=true
|
|
||||||
BUILD +test --NIGHTLY=true
|
integration-tests:
|
||||||
END
|
ARG NIGHTLY=false
|
||||||
BUILD +blue-build-cli --NIGHTLY=true
|
BUILD +integration-test-template --NIGHTLY=$NIGHTLY
|
||||||
BUILD +blue-build-cli-alpine --NIGHTLY=true
|
BUILD +integration-test-build --NIGHTLY=$NIGHTLY
|
||||||
BUILD +installer --NIGHTLY=true
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
FROM +common
|
FROM +common
|
||||||
|
|
@ -112,6 +113,32 @@ installer:
|
||||||
ARG INSTALLER=true
|
ARG INSTALLER=true
|
||||||
DO cargo+SAVE_IMAGE --IMAGE=$IMAGE --TAG=$TAG --LATEST=$LATEST --NIGHTLY=$NIGHTLY --INSTALLER=$INSTALLER
|
DO cargo+SAVE_IMAGE --IMAGE=$IMAGE --TAG=$TAG --LATEST=$LATEST --NIGHTLY=$NIGHTLY --INSTALLER=$INSTALLER
|
||||||
|
|
||||||
|
integration-test-template:
|
||||||
|
FROM DOCKERFILE -f +integration-test-template-containerfile/test/Containerfile +integration-test-template-containerfile/test/*
|
||||||
|
|
||||||
|
integration-test-template-containerfile:
|
||||||
|
ARG NIGHTLY=false
|
||||||
|
FROM +integration-test-base --NIGHTLY=$NIGHTLY
|
||||||
|
RUN bb -vv template config/recipe-jp-desktop.yml | tee Containerfile
|
||||||
|
|
||||||
|
SAVE ARTIFACT /test
|
||||||
|
|
||||||
|
integration-test-build:
|
||||||
|
ARG NIGHTLY=false
|
||||||
|
FROM +integration-test-base --NIGHTLY=$NIGHTLY
|
||||||
|
|
||||||
|
WITH DOCKER
|
||||||
|
RUN bb -vv build config/recipe-jp-desktop.yml
|
||||||
|
END
|
||||||
|
|
||||||
|
integration-test-base:
|
||||||
|
ARG NIGHTLY=false
|
||||||
|
|
||||||
|
FROM +blue-build-cli-alpine --NIGHTLY=$NIGHTLY
|
||||||
|
|
||||||
|
GIT CLONE https://gitlab.com/wunker-bunker/wunker-os.git /test
|
||||||
|
WORKDIR /test
|
||||||
|
|
||||||
iso-generator:
|
iso-generator:
|
||||||
FROM registry.fedoraproject.org/fedora-toolbox
|
FROM registry.fedoraproject.org/fedora-toolbox
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue