Merge branch 'split-ci' into 'master'

Split ci (0.2.5)

See merge request openflexure/openflexure-microscope-jsclient!23
This commit is contained in:
Joel Collins 2019-05-14 14:45:03 +00:00
commit 6888898f34
3 changed files with 78 additions and 25 deletions

View file

@ -1,6 +1,7 @@
stages: stages:
- build - build
- deploy - package
- meta
# Cache modules in between jobs # Cache modules in between jobs
cache: cache:
@ -8,41 +9,94 @@ cache:
paths: paths:
- node_modules/ - node_modules/
# Build basic webapp
build: build:
stage: build stage: build
image: electronuserland/builder:wine image: electronuserland/builder:wine
retry: 2
script: script:
- npm install - npm install
- npm run release - npm run build
- tar -czvf "./release-builds/openflexure-ev-web.tar.gz" -C "./dist" .
- chmod +x ./app/make-nupkg.sh
- ./app/make-nupkg.sh
artifacts: artifacts:
name: "openflexure-ev-web"
paths: paths:
- release-builds/*.exe - dist/
- release-builds/*.deb
- release-builds/*.AppImage
- release-builds/*.tar.gz
- release-builds/choco/openflexure-ev.nuspec
- release-builds/choco/tools/chocolateyInstall.ps1
only: only:
- tags - tags
- web - web
deploy: # Platform-specific Electron builds
stage: deploy package:rpi:
image: patrickhuber/choco-linux stage: package
dependencies: dependencies:
- build - build
image: electronuserland/builder:wine
retry: 2
script: script:
- cd ./release-builds/choco - npm run dist:raspi
- ls -R - mv ./release-builds/openflexure-ev-linux-armv7l.deb .
- choco pack
- choco apikey --key $CHOCO_API_KEY --source https://push.chocolatey.org/
- choco push --source https://push.chocolatey.org/
artifacts: artifacts:
name: "openflexure-ev-linux-armv7l"
paths: paths:
- release-builds/choco/*.nupkg - openflexure-ev-linux-armv7l.deb
only: only:
- tags - tags
- web
package:deb:
stage: package
dependencies:
- build
image: electronuserland/builder:wine
retry: 2
script:
- npm run dist:linux
- mv ./release-builds/openflexure-ev-linux-amd64.deb .
artifacts:
name: "openflexure-ev-linux-amd64"
paths:
- openflexure-ev-linux-amd64.deb
only:
- tags
- web
package:win32:
stage: package
dependencies:
- build
image: electronuserland/builder:wine
retry: 2
script:
- npm run dist:win
- mv ./release-builds/openflexure-ev-win.exe .
artifacts:
name: "openflexure-ev-win"
paths:
- openflexure-ev-win.exe
only:
- tags
- web
# Create a nupkg file for Choco package manager
meta:choco:
stage: meta
dependencies:
- package:win32
image: patrickhuber/choco-linux
script:
- chmod +x ./app/make-nupkg.sh
- ./app/make-nupkg.sh
- cd ./release-builds/choco
- choco pack
- cd ../../
- mv ./release-builds/choco/openflexure-ev.nuspec .
- mv ./release-builds/choco/*.nupkg .
- mv ./release-builds/choco/tools .
artifacts:
name: "openflexure-ev-choco-nupkg"
paths:
- ./openflexure-ev.nuspec
- tools/chocolateyInstall.ps1
- ./*.nupkg
only:
- tags
- web

View file

@ -1,7 +1,6 @@
extends: app/builder-config-base.yaml extends: app/builder-config-base.yaml
linux: linux:
target: target:
- AppImage
- target: deb - target: deb
arch: arch:
- x64 - x64

View file

@ -1,6 +1,6 @@
{ {
"name": "openflexure-ev", "name": "openflexure-ev",
"version": "0.2.4", "version": "0.2.5",
"private": true, "private": true,
"description": "An electron-based user client for the OpenFlexure Microscope Server", "description": "An electron-based user client for the OpenFlexure Microscope Server",
"author": "OpenFlexure <contact@openflexure.org> (https://www.openflexure.org)", "author": "OpenFlexure <contact@openflexure.org> (https://www.openflexure.org)",
@ -36,7 +36,7 @@
"electron-builder": "^20.39.0", "electron-builder": "^20.39.0",
"less": "^3.9.0", "less": "^3.9.0",
"less-loader": "^4.1.0", "less-loader": "^4.1.0",
"uikit": "^3.1.1", "uikit": "3.1.1",
"vue": "^2.5.21", "vue": "^2.5.21",
"vue-template-compiler": "^2.6.10", "vue-template-compiler": "^2.6.10",
"vuex": "^3.0.1" "vuex": "^3.0.1"