Skip to content

Commit 7ddfc3b

Browse files
committed
ci: fix windows testing
1 parent e74bec3 commit 7ddfc3b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ strategy:
1717
mac-node-latest:
1818
imageName: 'macos-latest'
1919
nodeVersion: '>=12.x'
20-
windows-node8:
20+
windows-node10:
2121
imageName: 'windows-latest'
2222
nodeVersion: '10.x'
2323
windows-node-latest:
@@ -40,7 +40,7 @@ schedules:
4040

4141
steps:
4242
# Needed to avoid issues with Prettier
43-
- script: git config --global core.autocrlf false
43+
- bash: git config --global core.autocrlf false
4444
displayName: Disable git automatic line ending conversion
4545

4646
- checkout: self
@@ -50,13 +50,14 @@ steps:
5050
versionSpec: $(nodeVersion)
5151
displayName: Install Node.js
5252

53-
- script: |
53+
- bash: |
54+
chmod +x scripts/test.sh
55+
chmod +x bin/create-ngx
5456
npm install
5557
npm link
5658
displayName: Install dependencies
5759

5860
- bash: |
59-
chmod +x scripts/test.sh
6061
npm run lint
6162
bash -c "scripts/test.sh"
6263
displayName: Run unit tests

scripts/test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo ---------------------------------------------------------------------------
2828
echo
2929

3030
prepare
31-
npx create-ngx --no-analytics --no-insights --automate "$CWD/scripts/tests/app.json" "$TEST_APP_NAME" --skip-install
31+
create-ngx --no-analytics --no-insights --automate "$CWD/scripts/tests/app.json" "$TEST_APP_NAME" --skip-install
3232

3333
echo
3434
echo -------------------------------------------------------------------------------
@@ -37,7 +37,7 @@ echo ---------------------------------------------------------------------------
3737
echo
3838

3939
prepare
40-
npx create-ngx --no-analytics --no-insights --automate "$CWD/scripts/tests/app.json" "$TEST_APP_NAME" --addons addon-firebase --skip-install
40+
create-ngx --no-analytics --no-insights --automate "$CWD/scripts/tests/app.json" "$TEST_APP_NAME" --addons addon-firebase --skip-install
4141

4242
echo
4343
echo -------------------------------------------------------------------------------
@@ -46,6 +46,6 @@ echo ---------------------------------------------------------------------------
4646
echo
4747

4848
prepare
49-
npx create-ngx --no-analytics --no-insights --automate "$CWD/scripts/tests/app.json" "$TEST_APP_NAME" --addons https://github.com/ngx-rocket/addon-firebase.git --skip-install
49+
create-ngx --no-analytics --no-insights --automate "$CWD/scripts/tests/app.json" "$TEST_APP_NAME" --addons https://github.com/ngx-rocket/addon-firebase.git --skip-install
5050

5151
cleanup

0 commit comments

Comments
 (0)