Fix Windows CI cargo test silently passing (#603)

* Fix Windows CI

* move cargo clean to be consistent with node
This commit is contained in:
trevyn 2021-04-07 19:09:44 +04:00 committed by GitHub
parent 5189de5a0e
commit 5ccca2d231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 22 deletions

View file

@ -1,10 +1,9 @@
steps: steps:
- script: | - script: 'refreshenv && cargo test --all'
refreshenv env:
LIBCLANG_PATH=C:\Program Files\LLVM\lib LIBCLANG_PATH: C:\Program Files\LLVM\lib
LLVM_CONFIG_PATH=C:\Program Files\LLVM\bin\llvm-config LLVM_CONFIG_PATH: C:\Program Files\LLVM\bin\llvm-config
ROARING_ARCH=x86-64-v2 ROARING_ARCH: x86-64-v2
cargo test --all
displayName: Windows Cargo Test displayName: Windows Cargo Test
condition: and(eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables['CI_JOB'], 'test-all' )) condition: and(eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables['CI_JOB'], 'test-all' ))
- script: 'ROARING_ARCH=x86-64-v2 cargo test --all' - script: 'ROARING_ARCH=x86-64-v2 cargo test --all'

View file

@ -1,22 +1,16 @@
steps: steps:
- script: | - script: 'refreshenv && cargo test --all'
refreshenv env:
LIBCLANG_PATH=C:\Program Files\LLVM\lib LIBCLANG_PATH: C:\Program Files\LLVM\lib
LLVM_CONFIG_PATH=C:\Program Files\LLVM\bin\llvm-config LLVM_CONFIG_PATH: C:\Program Files\LLVM\bin\llvm-config
ROARING_ARCH=x86-64-v2 ROARING_ARCH: x86-64-v2
cargo test --all
displayName: Cargo Test All displayName: Cargo Test All
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' ))
- script: 'cargo clean' - script: 'refreshenv && cargo clean && cargo build --release'
displayName: Cargo Clean env:
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) LIBCLANG_PATH: C:\Program Files\LLVM\lib
- script: | LLVM_CONFIG_PATH: C:\Program Files\LLVM\bin\llvm-config
cargo clean ROARING_ARCH: x86-64-v2
refreshenv
LIBCLANG_PATH=C:\Program Files\LLVM\lib
LLVM_CONFIG_PATH=C:\Program Files\LLVM\bin\llvm-config
ROARING_ARCH=x86-64-v2
cargo build --release
displayName: Build Release displayName: Build Release
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' ))
- script: | - script: |