-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove signing setup from Xamarin iOS task (#6853)
* Remove signing setup from Xamarin iOS task * PR feedback
- Loading branch information
Madhuri Gummalla
authored
Apr 2, 2018
1 parent
c870d33
commit f66bc31
Showing
18 changed files
with
197 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
import ma = require('vsts-task-lib/mock-answer'); | ||
import tmrm = require('vsts-task-lib/mock-run'); | ||
import path = require('path'); | ||
|
||
let taskPath = path.join(__dirname, '..', 'xamarinios.js'); | ||
let tr: tmrm.TaskMockRunner = new tmrm.TaskMockRunner(taskPath); | ||
|
||
process.env['HOME']='/user/home'; //replace with mock of setVariable when task-lib has the support | ||
|
||
tr.setInput('solution', 'src/project.sln'); //path | ||
tr.setInput('configuration', 'Release'); | ||
tr.setInput('args', ''); | ||
tr.setInput('packageApp', ''); //boolean | ||
tr.setInput('forSimulator', ''); //boolean | ||
tr.setInput('runNugetRestore', 'false'); //boolean | ||
tr.setInput('iosSigningIdentity', ''); | ||
tr.setInput('provProfileUuid', ''); | ||
|
||
// provide answers for task mock | ||
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{ | ||
"getVariable": { | ||
"HOME": "/user/home" | ||
}, | ||
"which": { | ||
"xbuild": "/home/bin/xbuild" | ||
}, | ||
"exec": { | ||
"/home/bin/xbuild src/project.sln /p:Configuration=Release /p:Platform=iPhone /t:Clean": { | ||
"code": 0, | ||
"stdout": "xbuild" | ||
}, | ||
"/home/bin/xbuild src/project.sln /p:Configuration=Release /p:Platform=iPhone": { | ||
"code": 0, | ||
"stdout": "xbuild" | ||
} | ||
}, | ||
"checkPath" : { | ||
"/user/build": true, | ||
"/home/bin/xbuild": true, | ||
"src/project.sln": true | ||
}, | ||
"findMatch" : { | ||
"src/project.sln": ["src/project.sln"] | ||
} | ||
}; | ||
tr.setAnswers(a); | ||
|
||
tr.run(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.