diff --git a/Dockerfile.e2e b/Dockerfile.e2e index c3078d319..d6634a684 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -41,4 +41,4 @@ COPY public public # RUN npx quasar build -CMD ["npx", "quasar", "dev"] +CMD ["npx", "cypress", "run"] diff --git a/e2e.sh b/e2e.sh index 67b6ce035..e231906c2 100644 --- a/e2e.sh +++ b/e2e.sh @@ -1,10 +1,30 @@ git clone --branch dev https://gitea.verdnatura.es/verdnatura/salix.git cd front export VERSION=e2e-try -# docker buildx build -f salix/back/Dockerfile -t back ./salix -# pnpm i @verdnatura/myt -# cd salix && npx myt run -t --ci -d -n front_default -# docker run --net=host -v ./test/cypress/storage:/salix/storage -d back +export SHELL=/bin/sh +export ENV=~/.profile +touch ~/.profile +apk add --no-cache curl +apk add --no-cache ca-certificates +update-ca-certificates +curl -fsSL https://nodejs.org/dist/v20.18.1/node-v20.18.1.tar.gz -o node.tar.gz +tar -xzf node.tar.gz -C /usr/local --strip-components=1 +apk add --no-cache python3 make gcc g++ libgcc libstdc++ linux-headers musl-dev +./configure +make -j$(nproc) +make install + +curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=8.15.1 sh - + +# DB +pnpm i @verdnatura/myt +cd salix && npx myt run -t --ci -d -n front_default + +# Back +docker buildx build -f salix/back/Dockerfile -t back ./salix +docker run --net=host -v ./test/cypress/storage:/salix/storage -d back + + # docker-compose -f docker-compose.e2e.yml -d up front # docker-compose -f docker-compose.e2e.yml up e2e --build