From 676ca86332b32322b24e9b5c399c1b83f2338f5f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 27 Dec 2019 18:37:49 +0200 Subject: [PATCH] chore: Switch to AppVeyor for Windows testing (#1255) Also, switch to shields.io for all badges (minus the Slack one) --- .travis.yml | 12 ------------ README.md | 5 +++-- appveyor.yml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index 2164f9841..3d9f65aa5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,11 @@ language: node_js os: - - windows - linux - osx node_js: - "node" - 10 - 8 -matrix: -## An ENOMEM error occurs with 10+ under Travis-CI for Windows. -## Disable until we can determine the cause. -# include: -# - os: windows -# node_js: "latest" - exclude: - - os: windows - node_js: "node" - - os: windows - node_js: 10 git: depth: 1 diff --git a/README.md b/README.md index fd7b02938..4983c5f6c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # nyc -[![Build Status](https://travis-ci.org/istanbuljs/nyc.svg?branch=master)](https://travis-ci.org/istanbuljs/nyc) -[![Coverage Status](https://coveralls.io/repos/istanbuljs/nyc/badge.svg?branch=)](https://coveralls.io/r/istanbuljs/nyc?branch=master) +[![Build Status](https://img.shields.io/travis/istanbuljs/nyc/master.svg)](https://travis-ci.org/istanbuljs/nyc) +[![Windows Build Status](https://img.shields.io/appveyor/ci/istanbuljs/nyc/master.svg?label=Windows%20build)](https://ci.appveyor.com/project/istanbuljs/nyc/branch/master) +[![Coverage Status](https://img.shields.io/coveralls/github/istanbuljs/nyc/master.svg)](https://coveralls.io/r/istanbuljs/nyc?branch=master) [![NPM version](https://img.shields.io/npm/v/nyc.svg)](https://www.npmjs.com/package/nyc) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![community slack](https://devtoolscommunity.herokuapp.com/badge.svg)](https://devtoolscommunity.herokuapp.com) diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..62ee40193 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,31 @@ +version: "{build}" + +shallow_clone: true + +environment: + matrix: + - NODEJS_VERSION: "13" + PLATFORM: x64 + - NODEJS_VERSION: "12" + PLATFORM: x64 + - NODEJS_VERSION: "10" + PLATFORM: x64 + - NODEJS_VERSION: "8" + PLATFORM: x64 + +install: + - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:NODEJS_VERSION) $env:PLATFORM + - npm ci + +test_script: + - node --version + - npm --version + - npm test + +build: off + +matrix: + fast_finish: true + +cache: + - '%APPDATA%\npm-cache\ -> appveyor.yml,package.json,package-lock.json'