diff --git a/README.md b/README.md
index 1948a74fb6..3b4c25eb45 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[![Build Status](https://travis-ci.org/fastify/fastify.svg?branch=master)](https://travis-ci.org/fastify/fastify)
-[![Build status](https://ci.appveyor.com/api/projects/status/xduljw5nsu1ya72x/branch/master?svg=true)](https://ci.appveyor.com/project/mcollina/fastify/branch/master) [![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify/badge.svg)](https://snyk.io/test/github/fastify/fastify)
+[![Build Status](https://dev.azure.com/fastify/fastify/_apis/build/status/fastify.fastify)](https://dev.azure.com/fastify/fastify/_build/latest?definitionId=1) [![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify/badge.svg)](https://snyk.io/test/github/fastify/fastify)
[![Coverage Status](https://coveralls.io/repos/github/fastify/fastify/badge.svg?branch=master)](https://coveralls.io/github/fastify/fastify?branch=master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
@@ -29,9 +29,14 @@ Enter Fastify. Fastify is a web framework highly focused on providing the best d
### Install
+Install with npm:
```
npm i fastify --save
```
+Install with yarn:
+```
+yarn add fastify
+```
### Example
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 28e7901d2b..0000000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-environment:
- matrix:
- - nodejs_version: 6
- platform: x64
- msvs_toolset: 12
- - nodejs_version: 8
- platform: x64
- msvs_toolset: 12
- - nodejs_version: 9
- platform: x64
- msvs_toolset: 12
-
-skip_commits:
- files:
- - docs/*
- - Dockerfile
- - travis.yml
- - '**/*.html'
- - examples/*
- - '*.md'
-
-# Install scripts. (runs after repo cloning)
-install:
- # Get the latest stable version of Node.js or io.js
- - ps: Install-Product node $env:nodejs_version
- # install modules
- - npm install
-
-# Post-install test scripts.
-test_script:
- # Output useful info for debugging.
- - node --version
- - npm --version
- # run tests
- - npm run lint
- - npm run unit -- --reporter=classic
- - npm run typescript
-
-os: Visual Studio 2015
-
-build: OFF
diff --git a/azure-pipelines-npm-template.yml b/azure-pipelines-npm-template.yml
new file mode 100644
index 0000000000..92126c961d
--- /dev/null
+++ b/azure-pipelines-npm-template.yml
@@ -0,0 +1,24 @@
+jobs:
+- job: ${{ parameters.name }}
+ pool:
+ vmImage: ${{ parameters.vmImage }}
+ strategy:
+ matrix:
+ node_11_x:
+ node_version: 11.x
+ node_10_x:
+ node_version: 10.x
+ node_8_x:
+ node_version: 8.x
+ node_6_x:
+ node_version: 6.x
+ maxParallel: 5
+ steps:
+ - task: NodeTool@0
+ inputs:
+ versionSpec: $(node_version)
+ displayName: Install Node.js
+ - bash: npm i
+ displayName: Install dependencies
+ - bash: npm test
+ displayName: Run tests
diff --git a/azure-pipelines-yarn-template.yml b/azure-pipelines-yarn-template.yml
new file mode 100644
index 0000000000..b30e15218d
--- /dev/null
+++ b/azure-pipelines-yarn-template.yml
@@ -0,0 +1,22 @@
+jobs:
+- job: ${{ parameters.name }}
+ pool:
+ vmImage: ${{ parameters.vmImage }}
+ strategy:
+ matrix:
+ node_11_x:
+ node_version: 11.x
+ node_10_x:
+ node_version: 10.x
+ node_8_x:
+ node_version: 8.x
+ maxParallel: 5
+ steps:
+ - task: NodeTool@0
+ inputs:
+ versionSpec: $(node_version)
+ displayName: Install Node.js
+ - bash: yarn install
+ displayName: Install dependencies
+ - bash: yarn test
+ displayName: Run tests
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000000..b3deefd293
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,10 @@
+jobs:
+- template: azure-pipelines-yarn-template.yml
+ parameters:
+ name: Linux
+ vmImage: ubuntu-16.04
+
+- template: azure-pipelines-npm-template.yml
+ parameters:
+ name: Windows
+ vmImage: vs2017-win2016
diff --git a/docs/Getting-Started.md b/docs/Getting-Started.md
index d9ff8eabe5..3cd9dc868d 100644
--- a/docs/Getting-Started.md
+++ b/docs/Getting-Started.md
@@ -7,9 +7,14 @@ Let's start!
### Install
+Install with npm:
```
npm i fastify --save
```
+Install with yarn:
+```
+yarn add fastify
+```
### Your first server
diff --git a/docs/LTS.md b/docs/LTS.md
index f377c7f150..96856eb9e8 100644
--- a/docs/LTS.md
+++ b/docs/LTS.md
@@ -1,26 +1,40 @@
Fastify
+
## Long Term Support
Fastify's Long Term Support (LTS) is provided according the schedule laid
out in this document:
1. Major releases, "X" release of [semantic versioning][semver] X.Y.Z release
-versions, are supported for a minimum period of six months from their release
-date. The release date of any specific version can be found at
-[https://github.com/fastify/fastify/releases](https://github.com/fastify/fastify/releases).
+ versions, are supported for a minimum period of six months from their release
+ date. The release date of any specific version can be found at
+ [https://github.com/fastify/fastify/releases](https://github.com/fastify/fastify/releases).
1. Major releases will receive security updates for an additional six months
-from the release of the next major release.
+ from the release of the next major release.
A "month" is to be a period of 30 consecutive days.
[semver]: https://semver.org/
+
### Schedule
| Version | Release Date | End Of LTS Date |
-|:--------|:-------------|:----------------|
+| :------ | :----------- | :-------------- |
| 1.0.0 | 2018-03-06 | TBD |
+
+
+
+### CI tested operating systems
+
+| CI | OS | Version | Package Manager | Node.js |
+| :------------- | :------ | :------------- | :-------------- | :------------- |
+| Travis | Linux | Ubuntu 14.04 | npm | 6,8,9,10 |
+| Azure pipeline | Linux | Ubuntu 16.04 | yarn | ~~6¹~~,8,10,11 |
+| Azure pipeline | Windows | vs2017-win2016 | npm | 6,8,10,11 |
+
+_¹ yarn supports only node >= 8_
diff --git a/package.json b/package.json
index 11df02ab9e..0ebae5b81b 100644
--- a/package.json
+++ b/package.json
@@ -5,13 +5,14 @@
"main": "fastify.js",
"typings": "fastify.d.ts",
"scripts": {
- "lint": "standard --verbose | snazzy && npm run lint:typescript",
+ "lint": "npm run lint:standard && npm run lint:typescript",
+ "lint:standard": "standard --verbose | snazzy",
"lint:typescript": "standard --parser typescript-eslint-parser --plugin typescript test/types/*.ts fastify.d.ts",
"unit": "tap -J test/*.test.js test/*/*.test.js",
"typescript": "tsc --project ./test/types/tsconfig.json",
"test": "npm run lint && npm run unit && npm run typescript",
"coverage": "npm run unit -- --cov --coverage-report=html",
- "coveralls": "npm run unit -- --cov",
+ "coveralls": "npm run unit -- --cov",
"bench": "branchcmp -r 2 -g -s \"npm run benchmark\"",
"benchmark": "npx concurrently -k -s first \"node ./examples/simple.js\" \"npx autocannon -c 100 -d 5 -p 10 localhost:3000/\""
},