Skip to content

Commit

Permalink
Set up CI with Azure Pipelines (#1226)
Browse files Browse the repository at this point in the history
* Set up CI with Azure Pipelines

* improve azure pipelines

* dont run website trigger on window systems, trigger website build after all builds

* run website script directly

* fix script name

* fix job name

* check if bash works on windows build too

* trigger website build for testing

* remove travis, appveyor script, test website build

* **NO_CI** revert condition

* add missing commands

* add azure badge and remove travis and appveyor badges

* add node 11, print tap_color env

* fix typo

* test

* test

* remove log

* test

* fix yaml issue

* remove colors

* inject secret coverall token into job

* fix

* fix

* add travis back, remove website trigger from azure pipeline

* dont run coverall on azure, use yarn on linux

* fix command to use yarn

* try to use npm as alias for yarn to use yarn in the package scripts

* print version of package manager

* ***NO_CI*** remove spaces

* split commands

* ***NO_CI*** add travis badge back

* add yarn install instruction, add ci supported os to LTS

* use container for testing

* restore travis, update list

* run tests, add pkm to table

* remove node 6 in combo with yarn, update table

* update table
  • Loading branch information
azure-pipelines[bot] authored and mcollina committed Nov 18, 2018
1 parent 584bc28 commit c53174c
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 49 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -5,7 +5,7 @@
<div align="center">

[![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/)

Expand All @@ -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

Expand Down
41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

24 changes: 24 additions & 0 deletions 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
22 changes: 22 additions & 0 deletions 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
10 changes: 10 additions & 0 deletions 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
5 changes: 5 additions & 0 deletions docs/Getting-Started.md
Expand Up @@ -7,9 +7,14 @@ Let's start!

<a name="install"></a>
### Install
Install with npm:
```
npm i fastify --save
```
Install with yarn:
```
yarn add fastify
```

<a name="first-server"></a>
### Your first server
Expand Down
24 changes: 19 additions & 5 deletions docs/LTS.md
@@ -1,26 +1,40 @@
<h1 align="center">Fastify</h1>

<a name="lts"></a>

## 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/

<a name="lts-schedule"></a>

### Schedule

| Version | Release Date | End Of LTS Date |
|:--------|:-------------|:----------------|
| :------ | :----------- | :-------------- |
| 1.0.0 | 2018-03-06 | TBD |

<a name="supported-os"></a>

### 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 | ~~~~,8,10,11 |
| Azure pipeline | Windows | vs2017-win2016 | npm | 6,8,10,11 |

_¹ yarn supports only node >= 8_
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -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/\""
},
Expand Down

0 comments on commit c53174c

Please sign in to comment.