Pipelines redone.

This commit is contained in:
Quentin Decaunes 2019-06-03 18:09:16 +02:00
parent f033cb4c98
commit c28abafd72

View File

@ -1,44 +1,45 @@
include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: SAST.gitlab-ci.yml
stages: stages:
- test
- install - install
- package - package
- installer - installer
- check
dependency_scanning:
stage: test
only:
- branches@le.storm1er/ryzen-controller
except: []
sast:
stage: test
only:
- branches@le.storm1er/ryzen-controller
except: []
js_syntax: js_syntax:
retry: 1 stage: test
stage: check only:
- branches@le.storm1er/ryzen-controller
image: node:carbon image: node:carbon
tags: [ docker ] tags: [ docker ]
cache: {}
dependencies: []
before_script: before_script:
- npm install -g acorn - npm install -g acorn
- rm -rf node_modules - rm -rf node_modules
script: script:
- find . -iname "*.js" -print0 | xargs -0 -I % sh -c 'echo "%"; acorn --ecma6 --silent "%"' - find . -iname "*.js" -print0 | xargs -0 -I % sh -c 'echo "%"; acorn --ecma6 --silent "%"'
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
node: node:
only: only:
- tags@le.storm1er/ryzen-controller - tags@le.storm1er/ryzen-controller
- branches@le.storm1er/ryzen-controller
except:
- master
stage: install stage: install
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
@ -54,6 +55,9 @@ node:
win32: win32:
only: only:
- tags@le.storm1er/ryzen-controller - tags@le.storm1er/ryzen-controller
- branches@le.storm1er/ryzen-controller
except:
- master
stage: package stage: package
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
@ -68,6 +72,9 @@ win32:
linux: linux:
only: only:
- tags@le.storm1er/ryzen-controller - tags@le.storm1er/ryzen-controller
- branches@le.storm1er/ryzen-controller
except:
- master
stage: package stage: package
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
@ -83,6 +90,9 @@ linux:
win32-installer: win32-installer:
only: only:
- tags@le.storm1er/ryzen-controller - tags@le.storm1er/ryzen-controller
- branches@le.storm1er/ryzen-controller
except:
- master
stage: installer stage: installer
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
@ -98,6 +108,9 @@ win32-installer:
deb-installer: deb-installer:
only: only:
- tags@le.storm1er/ryzen-controller - tags@le.storm1er/ryzen-controller
- branches@le.storm1er/ryzen-controller
except:
- master
stage: installer stage: installer
tags: [ docker ] tags: [ docker ]
image: debian:stretch image: debian:stretch
@ -121,6 +134,9 @@ deb-installer:
rpm-installer: rpm-installer:
only: only:
- tags@le.storm1er/ryzen-controller - tags@le.storm1er/ryzen-controller
- branches@le.storm1er/ryzen-controller
except:
- master
stage: installer stage: installer
tags: [ docker ] tags: [ docker ]
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono