Format yml files

Signed-off-by: Victor Porof <victor.porof@gmail.com>
without.crypto
Victor Porof 5 years ago
parent 577228969e
commit a4776c0957
  1. 6
      .travis.yml
  2. 114
      azure-pipelines-template.yml
  3. 24
      azure-pipelines.yml

@ -10,9 +10,9 @@ os:
rust: rust:
- 1.37.0 - 1.37.0
- stable - stable
- beta - beta
- nightly - nightly
script: script:
- cargo build --verbose - cargo build --verbose

@ -1,58 +1,58 @@
jobs: jobs:
- job: ${{ parameters.name }} - job: ${{ parameters.name }}
pool: pool:
vmImage: ${{ parameters.vmImage }} vmImage: ${{ parameters.vmImage }}
strategy: strategy:
matrix: matrix:
stable: stable:
rustup_toolchain: stable rustup_toolchain: stable
beta: beta:
rustup_toolchain: beta rustup_toolchain: beta
nightly: nightly:
rustup_toolchain: nightly rustup_toolchain: nightly
steps: steps:
# Linux and macOS. # Linux and macOS.
- ${{ if ne(parameters.name, 'Windows') }}: - ${{ if ne(parameters.name, 'Windows') }}:
- script: | - script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
displayName: Install rust displayName: Install rust
# Windows. # Windows.
- ${{ if eq(parameters.name, 'Windows') }}: - ${{ if eq(parameters.name, 'Windows') }}:
- script: | - script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN% rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
set PATH=%PATH%;%USERPROFILE%\.cargo\bin set PATH=%PATH%;%USERPROFILE%\.cargo\bin
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin" echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
displayName: Install rust (windows) displayName: Install rust (windows)
# All platforms. # All platforms.
- script: | - script: |
rustc -Vv rustc -Vv
cargo -V cargo -V
displayName: Query rust and cargo versions displayName: Query rust and cargo versions
- script: cargo build - script: cargo build
displayName: Build displayName: Build
- script: | - script: |
cargo test --all --verbose cargo test --all --verbose
cargo test --release --all --verbose cargo test --release --all --verbose
displayName: Test displayName: Test
# Linux and macOS w/nightly toolchain. # Linux and macOS w/nightly toolchain.
# Ideally we'd only run the script for the nightly toolchain, but I can't # Ideally we'd only run the script for the nightly toolchain, but I can't
# figure out how to determine that within the Azure Pipelines conditional. # figure out how to determine that within the Azure Pipelines conditional.
- ${{ if ne(parameters.name, 'Windows') }}: - ${{ if ne(parameters.name, 'Windows') }}:
- script: | - script: |
export RUST_BACKTRACE=1 export RUST_BACKTRACE=1
if [ "$RUSTUP_TOOLCHAIN" = "nightly" ] if [ "$RUSTUP_TOOLCHAIN" = "nightly" ]
then cargo bench --all --verbose; then cargo bench --all --verbose;
fi fi
displayName: Bench displayName: Bench
# Windows w/nightly toolchain. # Windows w/nightly toolchain.
# Ideally we'd only run the script for the nightly toolchain, but I can't # Ideally we'd only run the script for the nightly toolchain, but I can't
# figure out how to determine that within the Azure Pipelines conditional. # figure out how to determine that within the Azure Pipelines conditional.
- ${{ if eq(parameters.name, 'Windows') }}: - ${{ if eq(parameters.name, 'Windows') }}:
- script: | - script: |
SET RUST_BACKTRACE=1 SET RUST_BACKTRACE=1
if "%RUSTUP_TOOLCHAIN%" == "nightly" ( if "%RUSTUP_TOOLCHAIN%" == "nightly" (
cargo bench --all --verbose cargo bench --all --verbose
) )
displayName: Bench displayName: Bench

@ -1,15 +1,15 @@
jobs: jobs:
- template: azure-pipelines-template.yml - template: azure-pipelines-template.yml
parameters: parameters:
name: macOS name: macOS
vmImage: macOS-10.13 vmImage: macOS-10.13
- template: azure-pipelines-template.yml - template: azure-pipelines-template.yml
parameters: parameters:
name: Linux name: Linux
vmImage: ubuntu-16.04 vmImage: ubuntu-16.04
- template: azure-pipelines-template.yml - template: azure-pipelines-template.yml
parameters: parameters:
name: Windows name: Windows
vmImage: vs2017-win2016 vmImage: vs2017-win2016

Loading…
Cancel
Save