Create pipeline.

This commit is contained in:
Quentin Decaunes 2019-02-28 13:52:24 +01:00
parent 0bf142dfb9
commit bec4dce67a
5 changed files with 86 additions and 48 deletions

48
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,48 @@
stages:
- install
- package
- installer
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:
- npm run-script package
artifacts:
paths:
- release-builds/
dependencies:
- node
win32-installer:
only:
- tags@le.storm1er/ryzen-controller
stage: installer
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm run-script build
artifacts:
paths:
- installer-builds/
dependencies:
- node
- win32

View File

@ -1,5 +1,7 @@
# Ryzen controller # Ryzen controller
[![pipeline status](https://gitlab.com/le.storm1er/ryzen-controller/badges/master/pipeline.svg)](https://gitlab.com/le.storm1er/ryzen-controller/commits/master)
## For users ## For users
### Pre-requisite ### Pre-requisite

View File

@ -13,7 +13,7 @@ function getInstallerConfig () {
const rootPath = path.join('./') const rootPath = path.join('./')
return Promise.resolve({ return Promise.resolve({
appDirectory: path.join(rootPath, 'release-builds', 'RyzenController-win32-x64/'), appDirectory: path.join(rootPath, 'release-builds', 'RyzenController-win32-ia32/'),
authors: 'Decaunes Quentin', authors: 'Decaunes Quentin',
outputDirectory: path.join(rootPath, 'installer-builds'), outputDirectory: path.join(rootPath, 'installer-builds'),
setupExe: 'RyzenControllerInstaller.exe', setupExe: 'RyzenControllerInstaller.exe',

78
package-lock.json generated
View File

@ -1,13 +1,13 @@
{ {
"name": "ryzen-controller", "name": "ryzencontroller",
"version": "1.1.0", "version": "1.2.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@types/node": { "@types/node": {
"version": "10.12.21", "version": "10.12.27",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.21.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.27.tgz",
"integrity": "sha512-CBgLNk4o3XMnqMc0rhb6lc77IwShMEglz05deDcn2lQxyXEZivfwgYJu7SMha9V5XcrP6qZuevTHV/QrN2vjKQ==", "integrity": "sha512-e9wgeY6gaY21on3ve0xAjgBVjGDWq/xUteK0ujsE53bUoxycMkqfnkUgMt6ffZtykZ5X12Mg3T7Pw4TRCObDKg==",
"dev": true "dev": true
}, },
"abbrev": { "abbrev": {
@ -17,9 +17,9 @@
"dev": true "dev": true
}, },
"ajv": { "ajv": {
"version": "6.8.1", "version": "6.9.2",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.8.1.tgz", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.2.tgz",
"integrity": "sha512-eqxCp82P+JfqL683wwsL73XmFs1eG6qjw+RD3YHx+Jll1r0jNd4dh8QG9NYAeNGA/hnZjeEDgtTskgJULbxpWQ==", "integrity": "sha512-4UFy0/LgDo7Oa/+wOAlj44tp9K78u38E5/359eSrqEp1Z5PdVfimCcs7SluXMP755RUQu6d2b4AvF0R1C9RZjg==",
"dev": true, "dev": true,
"requires": { "requires": {
"fast-deep-equal": "^2.0.1", "fast-deep-equal": "^2.0.1",
@ -184,12 +184,6 @@
"integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=", "integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=",
"dev": true "dev": true
}, },
"builtin-modules": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
"integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
"dev": true
},
"camelcase": { "camelcase": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
@ -392,9 +386,9 @@
} }
}, },
"electron": { "electron": {
"version": "4.0.4", "version": "4.0.6",
"resolved": "https://registry.npmjs.org/electron/-/electron-4.0.4.tgz", "resolved": "https://registry.npmjs.org/electron/-/electron-4.0.6.tgz",
"integrity": "sha512-zG5VtLrmPfmw1fXY/3BEtRZk7OZ7djQhweZ6rW+R5NeF6s8RTz/AwTGtLoBo4z8wmJ5QTy0Y941FZw4pe5YlpA==", "integrity": "sha512-r2ow/EmDibjoCNJp35mB1CcPs2xBF9fp2eoWuUOJmpVQyzdba6EnqsSD1BxwXzF9vQ5WkQ2UbfXBIvpomrdioQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/node": "^10.12.18", "@types/node": "^10.12.18",
@ -545,15 +539,15 @@
} }
}, },
"electron-winstaller": { "electron-winstaller": {
"version": "2.7.0", "version": "2.5.2",
"resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-2.7.0.tgz", "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-2.5.2.tgz",
"integrity": "sha512-WKRUTyGzTQbM2Q6dYm/iQqdYRQRTMiFakPxqOCJrH29YPVelGG9vNldal68fnq2yL+FFsoQi/3+qb6jDk143mw==", "integrity": "sha1-B7ijoFVrhtDfQE6kCqz7cbJg03M=",
"dev": true, "dev": true,
"requires": { "requires": {
"asar": "^0.11.0", "asar": "^0.11.0",
"bluebird": "^3.3.4", "bluebird": "^3.3.4",
"debug": "^2.2.0", "debug": "^2.2.0",
"fs-extra": "^2.1.2", "fs-extra": "^0.26.7",
"lodash.template": "^4.2.2", "lodash.template": "^4.2.2",
"temp": "^0.8.3" "temp": "^0.8.3"
}, },
@ -589,13 +583,16 @@
} }
}, },
"fs-extra": { "fs-extra": {
"version": "2.1.2", "version": "0.26.7",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.26.7.tgz",
"integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU=", "integrity": "sha1-muH92UiXeY7at20JGM9C0MMYT6k=",
"dev": true, "dev": true,
"requires": { "requires": {
"graceful-fs": "^4.1.2", "graceful-fs": "^4.1.2",
"jsonfile": "^2.1.0" "jsonfile": "^2.1.0",
"klaw": "^1.0.0",
"path-is-absolute": "^1.0.0",
"rimraf": "^2.2.8"
} }
}, },
"glob": { "glob": {
@ -971,15 +968,6 @@
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
"dev": true "dev": true
}, },
"is-builtin-module": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz",
"integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=",
"dev": true,
"requires": {
"builtin-modules": "^1.0.0"
}
},
"is-finite": { "is-finite": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz",
@ -1173,18 +1161,18 @@
} }
}, },
"mime-db": { "mime-db": {
"version": "1.37.0", "version": "1.38.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
"integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==", "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==",
"dev": true "dev": true
}, },
"mime-types": { "mime-types": {
"version": "2.1.21", "version": "2.1.22",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz",
"integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==",
"dev": true, "dev": true,
"requires": { "requires": {
"mime-db": "~1.37.0" "mime-db": "~1.38.0"
} }
}, },
"minimatch": { "minimatch": {
@ -1276,13 +1264,13 @@
} }
}, },
"normalize-package-data": { "normalize-package-data": {
"version": "2.4.2", "version": "2.5.0",
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.2.tgz", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
"integrity": "sha512-YcMnjqeoUckXTPKZSAsPjUPLxH85XotbpqK3w4RyCwdFQSU5FxxBys8buehkSfg0j9fKvV1hn7O0+8reEgkAiw==", "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
"dev": true, "dev": true,
"requires": { "requires": {
"hosted-git-info": "^2.1.4", "hosted-git-info": "^2.1.4",
"is-builtin-module": "^1.0.0", "resolve": "^1.10.0",
"semver": "2 || 3 || 4 || 5", "semver": "2 || 3 || 4 || 5",
"validate-npm-package-license": "^3.0.1" "validate-npm-package-license": "^3.0.1"
} }

View File

@ -6,7 +6,7 @@
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"package": "electron-packager . --overwrite --asar --platform=win32 --arch=x64 --prune=true --out=release-builds", "package": "electron-packager . --overwrite --asar --platform=win32 --arch=ia32 --prune=true --out=release-builds",
"build": "node installers/windows/createinstaller.js" "build": "node installers/windows/createinstaller.js"
}, },
"repository": "https://gitlab.com/le.storm1er/ryzen-controller", "repository": "https://gitlab.com/le.storm1er/ryzen-controller",
@ -22,7 +22,7 @@
"devDependencies": { "devDependencies": {
"electron": "^4.0.4", "electron": "^4.0.4",
"electron-packager": "^13.1.0", "electron-packager": "^13.1.0",
"electron-winstaller": "^2.7.0" "electron-winstaller": "2.5.2"
}, },
"dependencies": { "dependencies": {
"electron-settings": "^3.2.0", "electron-settings": "^3.2.0",