File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,14 @@ install:
8
8
- ps : wget https://storage.googleapis.com/dart-archive/channels/dev/release/latest/sdk/dartsdk-windows-x64-release.zip -OutFile dart-sdk.zip
9
9
- cmd : echo "Unzipping dart-sdk..."
10
10
- cmd : 7z x dart-sdk.zip -o"C:\tools" -y > nul
11
- - set PATH=%PATH%;C:\tools\dart-sdk\bin
12
11
- set PATH=%PATH%;%APPDATA%\Pub\Cache\bin
13
12
- cd webdev
14
- - pub get && exit 0
13
+ - C:\tools\dart-sdk\bin\ pub.bat get && exit 0
15
14
16
15
build : off
17
16
18
17
test_script :
19
- - pub run test -j 1
18
+ - C:\tools\dart-sdk\bin\ pub.bat run test -j 1
20
19
21
20
cache :
22
21
- C:\Users\appveyor\AppData\Roaming\Pub\Cache
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class PackageExceptionDetails {
38
38
}
39
39
40
40
Future _runPubDeps () async {
41
- var result = Process .runSync ('pub' , ['deps' ], runInShell : true );
41
+ var result = Process .runSync (pubPath , ['deps' ]);
42
42
43
43
if (result.exitCode == 65 || result.exitCode == 66 ) {
44
44
throw new PackageException ._(
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ final String _sdkDir = (() {
22
22
return aboveExecutable;
23
23
})();
24
24
25
- final String dartPath = p.join (_sdkDir, 'bin' , 'dart' );
25
+ final String dartPath =
26
+ p.join (_sdkDir, 'bin' , Platform .isWindows ? 'dart.exe' : 'dart' );
26
27
final String pubPath =
27
28
p.join (_sdkDir, 'bin' , Platform .isWindows ? 'pub.bat' : 'pub' );
Original file line number Diff line number Diff line change @@ -208,9 +208,7 @@ dependencies:
208
208
test ('should succeed with valid configuration' , () async {
209
209
var exampleDirectory = p.absolute (p.join (p.current, '..' , 'example' ));
210
210
var process = await TestProcess .start (pubPath, ['get' ],
211
- workingDirectory: exampleDirectory,
212
- environment: _getPubEnvironment (),
213
- runInShell: true );
211
+ workingDirectory: exampleDirectory, environment: _getPubEnvironment ());
214
212
215
213
await process.shouldExit (0 );
216
214
You can’t perform that action at this time.
0 commit comments