Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13a59c3

Browse files
committed
Uncomment other jobs
1 parent 483ee9c commit 13a59c3

File tree

2 files changed

+60
-54
lines changed

2 files changed

+60
-54
lines changed

azure-pipelines.yml

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,54 @@ trigger:
22
- master
33

44
jobs:
5-
# - job: Linux
6-
# pool:
7-
# vmImage: ubuntu-16.04
8-
# steps:
9-
# - template: ci/azure-steps.yml
10-
# strategy:
11-
# matrix:
12-
# arm-android:
13-
# TARGET: arm-linux-androideabi
14-
# aarch64-android:
15-
# TARGET: aarch64-linux-android
16-
# i686-android:
17-
# TARGET: i686-linux-android
18-
# x86_64-android:
19-
# TARGET: x86_64-linux-android
20-
# x86_64:
21-
# TARGET: x86_64-unknown-linux-gnu
22-
# i686:
23-
# TARGET: i686-unknown-linux-gnu
24-
# arm:
25-
# TARGET: arm-unknown-linux-gnueabi
26-
# aarch64:
27-
# TARGET: aarch64-unknown-linux-gnu
28-
# x86_64-musl:
29-
# TARGET: x86_64-unknown-linux-musl
30-
# x86_64-mingw:
31-
# TARGET: x86_64-pc-windows-gnu
32-
# asmjs:
33-
# TARGET: asmjs-unknown-emscripten
34-
#
35-
# x86_64-beta:
36-
# TARGET: x86_64-unknown-linux-gnu
37-
# TOOLCHAIN: beta
38-
# x86_64-nightly:
39-
# TARGET: x86_64-unknown-linux-gnu
40-
# TOOLCHAIN: nightly
41-
#
42-
# - job: macOS
43-
# pool:
44-
# vmImage: macos-10.13
45-
# steps:
46-
# - template: ci/azure-steps.yml
47-
# strategy:
48-
# matrix:
49-
# x86_64:
50-
# TARGET: x86_64-apple-darwin
51-
# i686:
52-
# TARGET: i686-apple-darwin
5+
- job: Linux
6+
pool:
7+
vmImage: ubuntu-16.04
8+
steps:
9+
- template: ci/azure-steps.yml
10+
strategy:
11+
matrix:
12+
arm-android:
13+
TARGET: arm-linux-androideabi
14+
aarch64-android:
15+
TARGET: aarch64-linux-android
16+
i686-android:
17+
TARGET: i686-linux-android
18+
x86_64-android:
19+
TARGET: x86_64-linux-android
20+
x86_64:
21+
TARGET: x86_64-unknown-linux-gnu
22+
i686:
23+
TARGET: i686-unknown-linux-gnu
24+
arm:
25+
TARGET: arm-unknown-linux-gnueabi
26+
aarch64:
27+
TARGET: aarch64-unknown-linux-gnu
28+
x86_64-musl:
29+
TARGET: x86_64-unknown-linux-musl
30+
x86_64-mingw:
31+
TARGET: x86_64-pc-windows-gnu
32+
asmjs:
33+
TARGET: asmjs-unknown-emscripten
34+
35+
x86_64-beta:
36+
TARGET: x86_64-unknown-linux-gnu
37+
TOOLCHAIN: beta
38+
x86_64-nightly:
39+
TARGET: x86_64-unknown-linux-gnu
40+
TOOLCHAIN: nightly
41+
42+
- job: macOS
43+
pool:
44+
vmImage: macos-10.13
45+
steps:
46+
- template: ci/azure-steps.yml
47+
strategy:
48+
matrix:
49+
x86_64:
50+
TARGET: x86_64-apple-darwin
51+
i686:
52+
TARGET: i686-apple-darwin
5353

5454
- job: Windows
5555
pool:
@@ -61,12 +61,16 @@ jobs:
6161
i686-msvc:
6262
TARGET: i686-pc-windows-msvc
6363
RUSTFLAGS: -Ctarget-feature=-crt-static
64+
NAME: i686-msvc
6465
i686-msvc-static:
6566
TARGET: i686-pc-windows-msvc
6667
RUSTFLAGS: -Ctarget-feature=+crt-static
68+
NAME: i686-msvc-static
6769
x86_64-msvc:
6870
TARGET: x86_64-pc-windows-msvc
6971
RUSTFLAGS: -Ctarget-feature=-crt-static
72+
NAME: x86_64-msvc
7073
x86_64-msvc-static:
7174
TARGET: x86_64-pc-windows-msvc
7275
RUSTFLAGS: -Ctarget-feature=+crt-static
76+
NAME: x86_64-msvc-static

ci/azure-steps.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
steps:
22
- script: |
3-
echo ##vso[task.prependpath]C:\Strawberry\perl\bin
43
displayName: Use strawberry perl
54
condition: eq( variables['Agent.OS'], 'Windows_NT' )
65
@@ -16,16 +15,19 @@ steps:
1615
condition: and( ne( variables['Agent.OS'], 'Windows_NT' ), succeeded() )
1716
displayName: Run test script (unix)
1817

19-
- script: |
20-
cargo test --manifest-path testcrate/Cargo.toml --target %TARGET%
21-
cargo test --manifest-path testcrate/Cargo.toml --target %TARGET% --release
18+
- bash: |
19+
set -e
20+
export PATH="/c/Strawberry/perl/bin:$PATH"
21+
cargo test --manifest-path testcrate/Cargo.toml --target $TARGET
22+
cargo test --manifest-path testcrate/Cargo.toml --target $TARGET --release
2223
cargo run --release --target $TARGET --manifest-path testcrate/Cargo.toml --features package
24+
mv *.tar.gz release.tar.gz
2325
condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), succeeded() )
2426
displayName: Run test script (windows)
2527
2628
- task: PublishPipelineArtifact@0
2729
condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), succeeded() )
2830
displayName: Push Windows package
2931
inputs:
30-
artifactName: test
31-
targetPath: '*.tar.gz'
32+
artifactName: '$(NAME)'
33+
targetPath: 'release.tar.gz'

0 commit comments

Comments
 (0)