ci: Set up CI with Azure Pipelines
* ci: Set up CI with Azure Pipelines
[skip ci]
* drop travis
* tweak
* add EAI_AGAIN?
* try to remove xvfb
* remove trigger restriction
ADD
.azure-pipelines.yml
+# Node.js
+# Build a general Node.js project with npm.
+# Add steps that analyze code, save build artifacts, deploy, and more:
+# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
+
+pool:
+ vmImage: 'ubuntu-latest'
+
+strategy:
+ matrix:
+ node_10_x:
+ node_version: 10.x
+ node_12_x:
+ node_version: 12.x
+
+steps:
+- task: NodeTool@0
+ inputs:
+ versionSpec: $(node_version)
+ displayName: 'Install Node.js'
+
+- script: npm install
+- script: npm test
+- script: npm run e2e-test
+

DELETE
.travis.yml
-language: node_js
-node_js:
- - "10"
- - "12"
-addons:
- chrome: stable
-env:
- - COMMAND="npm test"
- - COMMAND="npm run e2e-test" _FORCE_LOGS=1
-services:
- - xvfb
-script: $COMMAND

MODIFY
test/express/server-e2e-specs.js
test/express/server-e2e-specs.js
@@ -85,7 +85,7 @@ describe('server', function () {
routeConfiguringFunction: _.noop,
port: 8181,
hostname: 'lolcathost',
- }).should.be.rejectedWith(/ENOTFOUND|EADDRNOTAVAIL/);
+ }).should.be.rejectedWith(/ENOTFOUND|EADDRNOTAVAIL|EAI_AGAIN/);
await server({
routeConfiguringFunction: _.noop,
port: 8181,

ci: Set up CI with Azure Pipelines (#439)

* ci: Set up CI with Azure Pipelines

[skip ci]

* drop travis

* tweak

* add EAI_AGAIN?

* try to remove xvfb

* remove trigger restriction