From 14392fe5800c1fc39427b55acf7f7096ecbbf0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Wed, 31 May 2017 21:30:55 +0200 Subject: [PATCH] Add appveyor CI integration (#292) * build(npm): Add .nvmrc file * style(.editorconfig): Add json rule to editorconfig file * build(npm): Add test srcipt command to the package.json file * build(appveyor): Add appveyor CI * build(appveyor): not npm upgrade to the latest version * style(editorconfig): Revert json rule --- .nvmrc | 1 + appveyor.yml | 29 +++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 31 insertions(+) create mode 100644 .nvmrc create mode 100644 appveyor.yml diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..c250d84b --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +6.9.4 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..921f880c --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +os: unstable + +environment: + matrix: + - nodejs_version: 6.9.4 + +cache: + - node_modules -> package.json + +matrix: + fast_finish: true + +build: off + +shallow_clone: true + +install: + - ps: Install-Product node $env:nodejs_version + - set CI=true + - set PATH=%APPDATA%\npm;%PATH% + - npm install + +test_script: + - node --version + - npm --version + - npm run build + - npm run build:test + - npm run lint + - npm run test diff --git a/package.json b/package.json index ed3b7d60..d4f46702 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ }, "scripts": { "postinstall": "run-p build:usb \"symlink -- -i\" ", + "test": "cd ./test-serializer && node ./test-serializer.js", "lint": "run-s -scn lint:ts lint:style", "lint:ts": "tslint \"electron/**/*.ts\" \"web/**/*.ts\" \"shared/**/*.ts\" \"test-serializer/**/*.ts\"", "lint:style": "stylelint \"electron/**/*.scss\" \"web/**/*.scss\" \"shared/**/*.scss\" --syntax scss",