Skip to content

Commit 95dad70

Browse files
author
Sheyla Trudo
committed
fixup! Separate Build Changes
1 parent ffc6935 commit 95dad70

File tree

1 file changed

+47
-63
lines changed

1 file changed

+47
-63
lines changed
Lines changed: 47 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,50 @@
11
stages:
2-
- stage: test
3-
displayName: Test ACN
4-
dependsOn:
5-
- setup
6-
jobs:
7-
- job: test
8-
displayName: Run Tests
9-
variables:
10-
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ]
11-
ob_git_checkout: true
12-
pool:
13-
isCustom: true
14-
type: linux
15-
name: "$(BUILD_POOL_NAME_DEFAULT)"
16-
steps:
17-
# Test changes under review
18-
- checkout: ACNReviewChanges
19-
clean: true
2+
- stage: test
3+
displayName: Test ACN
4+
dependsOn:
5+
- setup
6+
jobs:
7+
- job: test
8+
displayName: Run Tests
9+
variables:
10+
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ]
11+
steps:
12+
- script: |
13+
cd azure-container-networking
14+
make tools
15+
# run test, echo exit status code to fd 3, pipe output from test to tee, which splits output to stdout and go-junit-report (which converts test output to report.xml), stdout from tee is redirected to fd 4. Take output written to fd 3 (which is the exit code of test), redirect to stdout, pipe to read from stdout then exit with that status code. Read all output from fd 4 (output from tee) and write to top stdout
16+
{ { { {
17+
sudo -E env "PATH=$PATH" make test-all;
18+
echo $? >&3;
19+
} | tee >(build/tools/bin/go-junit-report > report.xml) >&4;
20+
} 3>&1;
21+
} | { read xs; exit $xs; }
22+
} 4>&1
23+
retryCountOnTaskFailure: 3
24+
displayName: "Run Tests"
2025
21-
- script: |
22-
cd azure-container-networking
23-
make tools
24-
# run test, echo exit status code to fd 3, pipe output from test to tee, which splits output to stdout and go-junit-report (which converts test output to report.xml), stdout from tee is redirected to fd 4. Take output written to fd 3 (which is the exit code of test), redirect to stdout, pipe to read from stdout then exit with that status code. Read all output from fd 4 (output from tee) and write to top stdout
25-
{ { { {
26-
sudo -E env "PATH=$PATH" make test-all;
27-
echo $? >&3;
28-
} | tee >(build/tools/bin/go-junit-report > report.xml) >&4;
29-
} 3>&1;
30-
} | { read xs; exit $xs; }
31-
} 4>&1
32-
retryCountOnTaskFailure: 3
33-
name: "Test"
34-
displayName: "Run Tests"
35-
36-
- stage: test_windows
37-
displayName: Test ACN Windows
38-
dependsOn:
39-
- setup
40-
jobs:
41-
- job: test
42-
displayName: Run Tests
43-
variables:
44-
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ]
45-
ob_git_checkout: true
46-
pool:
47-
isCustom: true
48-
type: windows
49-
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)"
50-
steps:
51-
# Test changes under review
52-
- checkout: ACNReviewChanges
53-
clean: true
54-
55-
- script: |
56-
cd azure-container-networking/
57-
cd npm/
58-
go test ./...
59-
cd ../cni/
60-
go test ./...
61-
cd ../platform/
62-
go test ./...
63-
retryCountOnTaskFailure: 3
64-
name: "TestWindows"
65-
displayName: "Run Windows Tests"
26+
- stage: test_windows
27+
displayName: Test ACN Windows
28+
dependsOn:
29+
- setup
30+
jobs:
31+
- job: test
32+
displayName: Run Tests
33+
variables:
34+
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ]
35+
pool:
36+
isCustom: true
37+
type: windows
38+
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)"
39+
steps:
40+
- script: |
41+
cd azure-container-networking/
42+
cd npm/
43+
go test ./...
44+
cd ../cni/
45+
go test ./...
46+
cd ../platform/
47+
go test ./...
48+
retryCountOnTaskFailure: 3
49+
displayName: "Run Windows Tests"
6650

0 commit comments

Comments
 (0)