Skip to content

Commit 7820a4a

Browse files
rebrand (#48)
* rebrand * update status grid
1 parent 9ea0544 commit 7820a4a

File tree

12 files changed

+97
-50
lines changed

12 files changed

+97
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CACHE
12
_build
23
_test
34
.taskkey

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# VSTS Tasks Tool Installer SDK
1+
# Azure Pipelines Tool Installer SDK
22

3-
Tool installer tasks SDK for [Visual Studio Team Services](https://www.visualstudio.com/en-us/products/visual-studio-team-services-vs.aspx) build and deployment.
3+
Tool installer tasks SDK for [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/).
44

55
[Tool Installer Task Overview: Read Here](docs/overview.md).
66

@@ -11,11 +11,17 @@ Sample of tool api usage is [here](sample.ts)
1111
In development. Preview installer tasks soon.
1212

1313
## Status
14+
1415
| | Build & Test |
1516
|---|:-----:|
16-
|![Win](docs/res/win_med.png) **Windows**|![Build & Test](https://mseng.visualstudio.com/_apis/public/build/definitions/b924d696-3eae-4116-8443-9a18392d8544/5199/badge?branch=master)|
17-
|![Apple](docs/res/apple_med.png) **OSX**|![Build & Test](https://mseng.visualstudio.com/_apis/public/build/definitions/b924d696-3eae-4116-8443-9a18392d8544/5200/badge?branch=master)|
18-
|![Ubuntu14](docs/res/ubuntu_med.png) **Ubuntu 14.04**|![Build & Test](https://mseng.visualstudio.com/_apis/public/build/definitions/b924d696-3eae-4116-8443-9a18392d8544/5201/badge?branch=master)|
17+
|![Win-x64](docs/res/win_med.png) **Windows**|[![Build & Test][win-build-badge]][build]|
18+
|![macOS](docs/res/apple_med.png) **macOS**|[![Build & Test][macOS-build-badge]][build]|
19+
|![Linux-x64](docs/res/ubuntu_med.png) **Linux**|[![Build & Test][linux-build-badge]][build]|
20+
21+
[win-build-badge]: https://dev.azure.com/mseng/PipelineTools/_apis/build/status/azure-pipelines-tool-lib?branchName=features/rebrand&jobname=VS2017_Win2016
22+
[macOS-build-badge]: https://dev.azure.com/mseng/PipelineTools/_apis/build/status/azure-pipelines-tool-lib?branchName=features/rebrand&jobname=MacOS_1013
23+
[linux-build-badge]: https://dev.azure.com/mseng/PipelineTools/_apis/build/status/azure-pipelines-tool-lib?branchName=features/rebrand&jobname=Ubuntu_1604
24+
[build]: https://dev.azure.com/mseng/PipelineTools/_build/latest?definitionId=7750
1925

2026
# Build
2127

azure-pipelines-steps.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
steps:
3+
# using cli
4+
- script: npm install
5+
displayName: 'install'
6+
- script: npm run build
7+
displayName: 'build'
8+
# test with node 6
9+
- task: NodeTool@0
10+
displayName: use node 6.10.3
11+
inputs:
12+
versionSpec: "6.10.3"
13+
- script: npm test
14+
displayName: 'test'

azure-pipelines.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#------------------------------------------------------
2+
# Build and test node typescript app with node8
3+
# on Ubuntu, VS2017 and Mac hosted VMs
4+
#------------------------------------------------------
5+
6+
jobs:
7+
- job: 'Ubuntu_1604'
8+
pool:
9+
vmImage: 'Ubuntu-16.04'
10+
11+
steps:
12+
- template: azure-pipelines-steps.yml
13+
14+
- job: 'VS2017_Win2016'
15+
pool:
16+
vmImage: 'vs2017-win2016'
17+
18+
steps:
19+
- template: azure-pipelines-steps.yml
20+
21+
- job: 'MacOS_1013'
22+
pool:
23+
vmImage: 'macOS-10.13'
24+
25+
steps:
26+
- template: azure-pipelines-steps.yml

docs/overview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The cache will be keyed by name, version, and optionally platform (x86, x64).
3838
{tool files}
3939
```
4040

41-
The downloader should guard against incomplete downloads. Therefore, the tool downloader adds a 0-byte file named `{platform}.complete` as a sibling of `{platform}` when it has completed the download. `vsts-task-tool-lib` will check for this file before retrieving the tool.
41+
The downloader should guard against incomplete downloads. Therefore, the tool downloader adds a 0-byte file named `{platform}.complete` as a sibling of `{platform}` when it has completed the download. `azure-pipelines-tool-lib` will check for this file before retrieving the tool.
4242

4343
As a complete, concrete example, here is how a completed download of Python 3.6.4 for x64 would look in the tool cache:
4444

@@ -106,16 +106,16 @@ Some tools have caches of there own which when used by multiple agents on the sa
106106

107107
The agent will provide a caches well known folder in the _work folder which has caches keyed by the tool name.
108108

109-
## vsts-task-tool-lib
109+
## azure-pipelines-tool-lib
110110

111-
The [`vsts-task-tool-lib/tool`](https://github.com/Microsoft/vsts-task-tool-lib/blob/master/tool.ts) library offers functions for downloading and extracting tools and making them available to subsequent steps in the build.
111+
The [`azure-pipelines-tool-lib/tool`](https://github.com/Microsoft/azure-pipelines-tool-lib/blob/master/tool.ts) library offers functions for downloading and extracting tools and making them available to subsequent steps in the build.
112112

113113
Example:
114114
```TypeScript
115115
import * as path from 'path';
116116

117-
import * as taskLib from 'vsts-task-lib/task';
118-
import * as toolLib from 'vsts-task-tool-lib/tool';
117+
import * as taskLib from 'azure-pipelines-task-lib/task';
118+
import * as toolLib from 'azure-pipelines-tool-lib/tool';
119119

120120
async function installNodeOnLinux() {
121121
try {

make.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require('shelljs/make');
22
var fs = require('fs');
33
var path = require('path');
4-
var tl = require('vsts-task-lib/task');
4+
var tl = require('azure-pipelines-task-lib/task');
55
var os = require('os');
66
var xml2js = require('xml2js');
77

package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "vsts-task-tool-lib",
2+
"name": "azure-pipelines-tool-lib",
33
"version": "0.10.1",
4-
"description": "VSTS Tool Installer Lib for CI/CD Tasks",
4+
"description": "Azure Pipelines Tool Installer Lib for CI/CD Tasks",
55
"main": "tool.js",
66
"scripts": {
77
"build": "node make.js build",
@@ -11,25 +11,25 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/microsoft/vsts-task-installer-lib.git"
14+
"url": "git+https://github.com/microsoft/azure-pipelines-tool-lib.git"
1515
},
1616
"keywords": [
1717
"VSTS"
1818
],
1919
"author": "Microsoft",
2020
"license": "MIT",
2121
"bugs": {
22-
"url": "https://github.com/microsoft/vsts-task-installer-lib/issues"
22+
"url": "https://github.com/microsoft/azure-pipelines-tool-lib/issues"
2323
},
24-
"homepage": "https://github.com/microsoft/vsts-task-installer-lib#readme",
24+
"homepage": "https://github.com/microsoft/azure-pipelines-tool-lib#readme",
2525
"dependencies": {
26-
"semver": "^5.3.0",
2726
"@types/semver": "^5.3.0",
27+
"@types/uuid": "^3.0.1",
28+
"azure-pipelines-task-lib": "^2.7.1",
29+
"semver": "^5.3.0",
2830
"semver-compare": "^1.0.0",
2931
"typed-rest-client": "1.0.9",
30-
"uuid": "^3.0.1",
31-
"@types/uuid": "^3.0.1",
32-
"vsts-task-lib": "2.4.0"
32+
"uuid": "^3.0.1"
3333
},
3434
"devDependencies": {
3535
"typescript": "^2.2.1",

sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as toolLib from './tool';
2-
import * as taskLib from 'vsts-task-lib/task';
2+
import * as taskLib from 'azure-pipelines-task-lib/task';
33
import * as restm from 'typed-rest-client/RestClient';
44
import * as os from 'os';
55
import * as path from 'path';

test/tests/toolTests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import os = require('os');
66

77
import * as mocha from 'mocha';
88
process.env['AGENT_VERSION'] = '2.115.0';
9-
import * as tl from 'vsts-task-lib/task';
10-
import * as trm from 'vsts-task-lib/toolrunner';
9+
import * as tl from 'azure-pipelines-task-lib/task';
10+
import * as trm from 'azure-pipelines-task-lib/toolrunner';
1111
import * as toolLib from '../../_build/tool';
1212

1313
let cachePath = path.join(process.cwd(), 'CACHE');

0 commit comments

Comments
 (0)