Pipeline for cross platform build.

This commit is contained in:
Quentin DECAUNES 2019-03-11 14:40:26 +01:00
parent 231e0666ce
commit d07351632f

View File

@ -1,8 +1,8 @@
stages: stages:
- check
- install - install
- package - package
- installer - installer
- check
dependency_scanning: dependency_scanning:
stage: check stage: check
@ -47,7 +47,21 @@ win32:
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
script: script:
- npm run-script package - npm run-script package-win32
artifacts:
paths:
- release-builds/
dependencies:
- node
linux:
only:
- tags@le.storm1er/ryzen-controller
stage: package
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm run-script package-linux
artifacts: artifacts:
paths: paths:
- release-builds/ - release-builds/
@ -61,10 +75,48 @@ win32-installer:
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
script: script:
- npm run-script build - npm run-script build-win32
artifacts: artifacts:
paths: paths:
- installer-builds/ - installer-builds/
dependencies: dependencies:
- node - node
- win32 - win32
deb-installer:
only:
- tags@le.storm1er/ryzen-controller
stage: installer
tags: [ docker ]
image: debian:stretch
before_script:
- apt update -y
- apt install fakeroot curl -y
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
- export NVM_DIR="$HOME/.nvm"
- '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'
- nvm install 10.15.1
- nvm use 10.15.1
script:
- npm run-script build-deb
artifacts:
paths:
- installer-builds/
dependencies:
- node
- linux
rpm-installer:
only:
- tags@le.storm1er/ryzen-controller
stage: installer
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm run-script build-rpm
artifacts:
paths:
- installer-builds/
dependencies:
- node
- linux