More testing stuff

parent d83d9419
......@@ -48,10 +48,24 @@ build:
- echo $STAGING_SERVER_ENDPOINTS > src/assets/serverEndpoint.json
- npm install
- npm run build:SSR
- cd dist
- node server &
- sleep 15s
artifacts:
paths:
- dist
generate_logos:
stage: assets
only:
- master
tags:
- nodejs
script:
- npm install
- cd dist/browser/assets/jobs
- node --experimental-modules GenerateImages.mjs --command=generateLogoImages
generate_previews:
stage: assets
only:
......@@ -65,11 +79,8 @@ generate_previews:
- apt-get -y install google-chrome-stable imagemagick libpng-dev zlib1g-dev
- export CHROME_BIN=`whereis google-chrome | cut -d " " -f 2`
- npm install
- cd dist
- node server &
- sleep 15s
- cd browser/assets/jobs
- node --experimental-modules GenerateImages.mjs --command=all --host=http://localhost:4000
- cd dist/browser/assets/jobs
- node --experimental-modules GenerateImages.mjs --command=generateFrontendPreview --host=http://localhost:4000
deploy:
stage: deploy
......
......@@ -86,8 +86,13 @@ class GenerateImages {
}
all(host) {
console.log('----------------------');
console.log(`generateLogoImages: Started with host: ${host}`);
this.generateFrontendPreview(host);
console.log('----------------------');
console.log(`generateLogoImages: Started`);
this.generateLogoImages();
console.log('----------------------');
}
async generateFrontendPreview(host) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment