Skip to content
Snippets Groups Projects
Commit 7d2f8c9e authored by mathias.chouet's avatar mathias.chouet
Browse files

Update releases-scripts and CI config

parent 864ea7cb
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,10 @@ stages: ...@@ -3,8 +3,10 @@ stages:
- install - install
- test - test
- build - build
#- release-android
- release-linux - release-linux
- release-windows
- release-mac
#- release-android
variables: variables:
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
...@@ -58,15 +60,6 @@ test: ...@@ -58,15 +60,6 @@ test:
script: script:
- npm run e2e - npm run e2e
# release-android:
# stage: release-android
# only:
# - tags
# - schedules
# - web
# script:
# - npm run release-android
release-linux: release-linux:
stage: release-linux stage: release-linux
only: only:
...@@ -75,3 +68,30 @@ release-linux: ...@@ -75,3 +68,30 @@ release-linux:
- web - web
script: script:
- npm run release-linux - npm run release-linux
release-windows:
stage: release-windows
only:
- tags
- schedules
- web
script:
- npm run release-windows
release-mac:
stage: release-mac
only:
- tags
- schedules
- web
script:
- npm run release-mac
# release-android:
# stage: release-android
# only:
# - tags
# - schedules
# - web
# script:
# - npm run release-android
...@@ -37,7 +37,7 @@ Then, back to the ngHyd project folder, run : ...@@ -37,7 +37,7 @@ Then, back to the ngHyd project folder, run :
`npm run e2e` `npm run e2e`
### To quickly end-to-end unit tests while watch mode is running ### To quickly run end-to-end unit tests while watch mode is running
`npm run e2equick` `npm run e2equick`
......
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
"update-dist-index-mimetypes": "node scripts/update-dist-index-mimetypes.js", "update-dist-index-mimetypes": "node scripts/update-dist-index-mimetypes.js",
"build-cordova": "npm run preprocess && npm run build && npm run update-dist-index-mimetypes && node scripts/add-cordova-script.js", "build-cordova": "npm run preprocess && npm run build && npm run update-dist-index-mimetypes && node scripts/add-cordova-script.js",
"release-android": "npm run build-cordova && \"node_modules/.bin/cordova\" platform add android; node scripts/remove-duplicate-sitemap.js && \"node_modules/.bin/cordova\" build android && node scripts/move-cordova-release.js", "release-android": "npm run build-cordova && \"node_modules/.bin/cordova\" platform add android; node scripts/remove-duplicate-sitemap.js && \"node_modules/.bin/cordova\" build android && node scripts/move-cordova-release.js",
"copy-electron-icon-windows": "copy \"src\\android-chrome-512x512.png\" \"electron\\icon.png\" /Y",
"electron": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron\" .", "electron": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron\" .",
"release-linux": "npm run build && npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\"", "release-linux-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\"",
"release-mac": "npm run build && npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" --mac", "release-linux": "npm run build && npm run release-linux-nocompile",
"release-windows": "node scripts/clean_release.js && npm run build && npm run update-dist-index-mimetypes && npm run copy-electron-icon-windows && \"node_modules/.bin/electron-builder\"", "release-mac-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" --mac",
"release-mac": "npm run build && npm run release-mac-nocompile",
"release-windows-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" --win",
"release-windows": "npm run build && npm run release-windows-nocompile",
"release-all": "node scripts/clean_release.js && npm run build && npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" && \"node_modules/.bin/electron-builder\" --mac && \"node_modules/.bin/electron-builder\" --win && npm run release-android", "release-all": "node scripts/clean_release.js && npm run build && npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" && \"node_modules/.bin/electron-builder\" --mac && \"node_modules/.bin/electron-builder\" --win && npm run release-android",
"compodoc": "node \"node_modules/@compodoc/compodoc/bin/index-cli.js\" -p src/tsconfig.app.json -s --language fr-FR -d compodoc-fr", "compodoc": "node \"node_modules/@compodoc/compodoc/bin/index-cli.js\" -p src/tsconfig.app.json -s --language fr-FR -d compodoc-fr",
"viz": "tsviz -recursive src/ nghyd_class_diagram.png" "viz": "tsviz -recursive src/ nghyd_class_diagram.png"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment