Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ coverage
# nyc test coverage
.nyc_output

# CI (Azure Pipelines) xUnit test results
test-results.xml

# IDEs
.vscode/
*.~vsdx
Expand Down
16 changes: 2 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
language: node_js # don't install any environment

node_js:
- "11"
- "lts/*"

os:
- linux
- osx
- windows

matrix:
include:
- os: linux
node_js:
- "10"
- os: linux
node_js:
- "8"
script: npm run coverage

after_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" &&
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
> UI5 specific file system abstraction
> Part of the [UI5 Tooling](https://github.com/SAP/ui5-tooling)

[![Travis CI Build Status](https://travis-ci.org/SAP/ui5-fs.svg?branch=master)](https://travis-ci.org/SAP/ui5-fs)
[![Build Status](https://dev.azure.com/sap/opensource/_apis/build/status/SAP.ui5-fs?branchName=master)](https://dev.azure.com/sap/opensource/_build/latest?definitionId=36&branchName=master)
[![npm Package Version](https://badge.fury.io/js/%40ui5%2Ffs.svg)](https://www.npmjs.com/package/@ui5/fs)
[![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-fs/badge.svg)](https://coveralls.io/github/SAP/ui5-fs)
[![Dependency Status](https://david-dm.org/SAP/ui5-fs/master.svg)](https://david-dm.org/SAP/ui5-fs/master)
Expand Down
50 changes: 50 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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

trigger:
- master

strategy:
matrix:
linux_node_8:
imageName: 'ubuntu-16.04'
node_version: 8.x
linux_node_10:
imageName: 'ubuntu-16.04'
node_version: 10.x
linux_node_latest:
imageName: 'ubuntu-16.04'
node_version: 11.x
mac_node_latest:
imageName: 'macos-10.13'
node_version: 11.x
windows_node_latest:
imageName: 'vs2017-win2016'
node_version: 11.x

pool:
vmImage: $(imageName)

steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'

- script: npm ci
- script: npm run test-azure

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '$(System.DefaultWorkingDirectory)/test-results.xml'

- task: PublishCodeCoverageResults@1
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'

53 changes: 53 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
},
"scripts": {
"test": "npm run lint && npm run jsdoc-generate && npm run coverage",
"test-azure": "npm run lint && npm run jsdoc-generate && npm run coverage-xunit",
"lint": "eslint ./",
"unit": "rimraf test/tmp && ava",
"unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
"unit-watch": "rimraf test/tmp && ava --watch",
"unit-nyan": "rimraf test/tmp && ava --tap | tnyan",
"unit-xunit": "rimraf test/tmp && ava --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
"unit-inspect": "cross-env UI5_LOG_LVL=verbose node --inspect-brk node_modules/ava/profile.js",
"coverage": "nyc npm run unit",
"coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
"jsdoc": "npm run jsdoc-generate && opn jsdocs/index.html",
"jsdoc-generate": "node_modules/.bin/jsdoc -c ./jsdoc.json ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
"preversion": "npm test",
Expand Down Expand Up @@ -119,9 +122,7 @@
"opn-cli": "^4.1.0",
"rimraf": "^2.6.3",
"sinon": "^7.3.2",
"tap-nyan": "^1.1.0"
},
"resolutions": {
"dir-glob": "2.0.0"
"tap-nyan": "^1.1.0",
"tap-xunit": "^2.4.1"
}
}