Commit 78c94de5 authored by David Burke's avatar David Burke

Update set_version script to run on web ext e2e too

parent 1be69e6b
Pipeline #13571185 passed with stages
in 60 minutes and 33 seconds
......@@ -91,6 +91,7 @@ e2e-chrome-ext:
dependencies:
- build
script:
- ./set_version.sh
- docker-compose up -d api selenium-chrome-rec
- docker-compose run app build:ext -- --progress false
- docker-compose run --no-deps -e EXTENSION=true app e2e:docker
......@@ -119,8 +120,7 @@ build-ext-assets:
dependencies:
- build
script:
- PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
- sed -i -e "s/CI_INSERT_VERSION_HERE/$PACKAGE_VERSION/g" src/manifest.json
- ./set_version.sh
- docker-compose run --no-deps app build:ext -- --prod --build-optimizer --progress false
- docker-compose run --no-deps app ext:lint
- docker-compose run --no-deps app ext:build
......
......@@ -14,7 +14,7 @@
"ext:build": "web-ext -s dist/ build --ignore-files assets/icon/manifest.json",
"ext:sign": "web-ext -s dist/ sign --ignore-files assets/icon/manifest.json --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET",
"e2e": "ng e2e -s false",
"e2e:docker": "yarn e2e -- --webdriver-update false",
"e2e:docker": "yarn e2e --webdriver-update false",
"compodoc": "./node_modules/.bin/compodoc -p tsconfig.json",
"compodoc-serve": "./node_modules/.bin/compodoc -p tsconfig.json -s",
"compodoc-gitlab": "./node_modules/.bin/compodoc -p tsconfig.json -d public/"
......
#!/bin/sh
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
sed -i -e "s/CI_INSERT_VERSION_HERE/$PACKAGE_VERSION/g" src/manifest.json
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