ryzen-controller/.gitlab-ci.yml

134 lines
2.8 KiB
YAML
Raw Normal View History

2019-02-28 19:52:24 +07:00
stages:
- install
- package
- installer
2019-03-11 20:40:26 +07:00
- check
2019-02-28 19:52:24 +07:00
2019-06-03 17:17:13 +07:00
js_syntax:
retry: 1
stage: check
image: node:carbon
tags: [ docker ]
before_script:
- npm install -g acorn
script:
- find . -iname "*.js" -print0 | xargs -0 -I % sh -c 'echo "%"; acorn --ecma6 --silent "%"'
2019-03-10 22:24:31 +07:00
dependency_scanning:
stage: check
only:
- branches@le.storm1er/ryzen-controller
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
artifacts:
reports:
dependency_scanning: gl-dependency-scanning-report.json
2019-02-28 19:52:24 +07:00
node:
only:
- tags@le.storm1er/ryzen-controller
stage: install
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm install
cache:
paths:
- node_modules/
artifacts:
paths:
- node_modules/
win32:
only:
- tags@le.storm1er/ryzen-controller
stage: package
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
2019-03-11 20:40:26 +07:00
- 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:
2019-06-03 18:07:16 +07:00
- rm -rf bin/*
2019-03-11 20:40:26 +07:00
- npm run-script package-linux
2019-02-28 19:52:24 +07:00
artifacts:
paths:
- release-builds/
dependencies:
- node
win32-installer:
only:
- tags@le.storm1er/ryzen-controller
stage: installer
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
2019-03-11 20:40:26 +07:00
- npm run-script build-win32
2019-02-28 19:52:24 +07:00
artifacts:
paths:
- installer-builds/
dependencies:
- node
- win32
2019-03-11 20:40:26 +07:00
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