From 0a48d1df740e5adfdb1172e1896e039f44c81709 Mon Sep 17 00:00:00 2001 From: CJ Patoilo Date: Tue, 13 Dec 2016 02:19:30 -0300 Subject: [PATCH] Improvements on CI --- .appveyor.yml | 23 ++++++++++++++++------- .editorconfig | 1 - .travis.yml | 10 +++++++--- package.json | 16 ++++++++-------- 4 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 9b5df21..2a5e900 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,10 +1,19 @@ environment: - nodejs_version: 7 -platform: - - x86 - - x64 + matrix: + - nodejs_version: 7 + - nodejs_version: 6 + - nodejs_version: 5 + - nodejs_version: 4 install: - - ps: Install-Product node $env:nodejs_version $env:platform - - npm install -test_script: npm test + - ps: Install-Product node $env:nodejs_version + - set CI=true + - npm i -g npm + - set PATH=%APPDATA%\npm;%PATH% + - npm i +matrix: + fast_finish: true build: off +version: '{build}' +shallow_clone: true +clone_depth: 1 +test_script: npm t diff --git a/.editorconfig b/.editorconfig index 85a84c3..36f585c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,3 @@ -# http://editorconfig.org/ root = true [*] diff --git a/.travis.yml b/.travis.yml index 3f86cd9..d257d29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ -sudo: false language: node_js -node_js: 7 -scripts: npm test +node_js: + - 7 + - 6 + - 5 + - 4 +before_install: + - npm i -g npm diff --git a/package.json b/package.json index 15daa0d..9d3935b 100644 --- a/package.json +++ b/package.json @@ -49,13 +49,13 @@ "normalize.css": "~5.0.0" }, "devDependencies": { - "autoprefixer": "^6.5.3", + "autoprefixer": "^6.5.4", "ava": "^0.17.0", - "backstopjs": "^2.3.3", - "banner-cli": "^0.6.0", - "browser-sync": "^2.18.2", - "husky": "^0.11.6", - "node-sass": "^3.13.0", + "backstopjs": "^2.3.5", + "banner-cli": "^0.9.2", + "browser-sync": "^2.18.5", + "husky": "^0.11.9", + "node-sass": "^3.13.1", "npm-run-all": "^2.3.0", "nyc": "^10.0.0", "onchange": "^2.5.0", @@ -64,7 +64,7 @@ "sass-lint": "^1.10.2" }, "engines": { - "node": "^7.0.0" + "node": ">=4" }, "scripts": { "start": "run-p build watch serve", @@ -81,7 +81,7 @@ "backstop": "run-s build && run-p serve compare", "reference": "backstop reference --configPath=backstop.conf.js", "compare": "backstop test --configPath=backstop.conf.js", - "precommit": "run-s build test && git add dist/*", + "precommit": "run-s build test", "prestart": "npm install", "pretest": "npm install" }