Test using actual release-builds
This commit is contained in:
parent
a9bde40964
commit
047d4be570
1 changed files with 4 additions and 26 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- meta
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
# Cache modules in between jobs
|
# Cache modules in between jobs
|
||||||
|
|
@ -10,7 +9,7 @@ cache:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
|
|
||||||
# Electron app build
|
# Electron app build
|
||||||
package:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
image: electronuserland/builder:wine
|
image: electronuserland/builder:wine
|
||||||
script:
|
script:
|
||||||
|
|
@ -27,10 +26,13 @@ package:
|
||||||
- "./release-builds/latest*.yml"
|
- "./release-builds/latest*.yml"
|
||||||
- "./release-builds/beta*.yml"
|
- "./release-builds/beta*.yml"
|
||||||
only:
|
only:
|
||||||
|
- web
|
||||||
- tags
|
- tags
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
before_script:
|
before_script:
|
||||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||||
|
|
@ -41,31 +43,7 @@ deploy:
|
||||||
script:
|
script:
|
||||||
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
|
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
|
||||||
- mkdir -p "./release-builds"
|
- mkdir -p "./release-builds"
|
||||||
- touch "./release-builds/build-placeholder.txt"
|
|
||||||
- rsync -hrvz -e ssh release-builds/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-ev/
|
- rsync -hrvz -e ssh release-builds/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-ev/
|
||||||
only:
|
only:
|
||||||
- web
|
- web
|
||||||
|
|
||||||
# Create a nupkg file for Choco package manager
|
|
||||||
meta:choco:
|
|
||||||
stage: meta
|
|
||||||
dependencies:
|
|
||||||
- package
|
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue