salix-front/e2e.sh

34 lines
1.0 KiB
Bash
Raw Normal View History

2024-10-04 10:08:47 +00:00
git clone --branch dev https://gitea.verdnatura.es/verdnatura/salix.git
cd front
2024-10-21 09:34:39 +00:00
export VERSION=e2e-try
2024-12-12 09:26:52 +00:00
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
2024-10-21 09:34:39 +00:00
# docker-compose -f docker-compose.e2e.yml -d up front
# docker-compose -f docker-compose.e2e.yml up e2e --build
2024-10-04 10:08:47 +00:00
2024-10-21 09:34:39 +00:00
docker-compose -f docker-compose.e2e.yml up front --build -d
docker-compose -f docker-compose.e2e.yml up e2e --build
2024-10-04 10:08:47 +00:00