Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Try out experimental azure support #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: false
language: rust
rust:
- 1.22.0 # Two releases back
- 1.22.0 # Minimum supported version
- stable
- beta
- nightly
Expand Down
121 changes: 85 additions & 36 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,94 @@
# Ref: https://aka.ms/yaml

resources:
containers:
- container: debian-jessie
image: onuras/docs.rs:debian-jessie
- container: debian-stretch
image: onuras/docs.rs:debian-stretch


repositories:
- repository: crate-ci
type: github
name: crate-ci/resources
endpoint: crate-ci
variables:
check_toolchain: 1.31.0 # `stable`: Locking down for consistent behavior
minimum_supported_version: 1.22.0
jobs:
- job: test
- template: /az-pipeline/unstable/rustfmt.yml@crate-ci
parameters:
rustup_toolchain: $(check_toolchain)
- template: /az-pipeline/unstable/clippy.yml@crate-ci
parameters:
rustup_toolchain: $(check_toolchain)
- template: /az-pipeline/unstable/warnings.yml@crate-ci
parameters:
rustup_toolchain: $(check_toolchain)
- job: Windows
pool:
vmImage: 'Ubuntu 16.04'
vmImage: vs2017-win2016
strategy:
matrix:
jessie:
containerResource: debian-jessie
stretch:
containerResource: debian-stretch
container: $[ variables['containerResource'] ]
stable:
rustup_toolchain: stable
beta:
rustup_toolchain: beta
nightly:
rustup_toolchain: nightly
minimum_supported_version:
rustup_toolchain: $(minimum_supported_version)
steps:
- script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
displayName: 'Install rustc'
- script: |
export PATH=$PATH:$HOME/.cargo/bin
rustc --version --verbose
cargo --version --verbose
displayName: Versions
- script: |
export PATH=$PATH:$HOME/.cargo/bin
cargo check --verbose
displayName: Build
- script: |
export PATH=$PATH:$HOME/.cargo/bin
cargo test --verbose
- template: /az-pipeline/unstable/rustup.yml@crate-ci
parameters:
rustup_toolchain: $(rustup_toolchain)
- script: cargo check --verbose
displayName: Compile
- script: cargo test --verbose
displayName: Test
- script: |
export PATH=$PATH:$HOME/.cargo/bin
printenv
- script: set
displayName: Dump (baseline)
- script: |
export PATH=$PATH:$HOME/.cargo/bin
cargo run --verbose
- script: cargo run --verbose
displayName: Dump
- job: macOS
pool:
vmImage: macOS-10.13
strategy:
matrix:
stable:
rustup_toolchain: stable
beta:
rustup_toolchain: beta
nightly:
rustup_toolchain: nightly
minimum_supported_version:
rustup_toolchain: $(minimum_supported_version)
steps:
- template: /az-pipeline/unstable/rustup.yml@crate-ci
parameters:
rustup_toolchain: $(rustup_toolchain)
- script: cargo check --verbose
displayName: Compile
- script: cargo test --verbose
displayName: Test
- script: printenv
displayName: Dump (baseline)
- script: cargo run --verbose
displayName: Dump
- job: Linux
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
stable:
rustup_toolchain: stable
beta:
rustup_toolchain: beta
nightly:
rustup_toolchain: nightly
minimum_supported_version:
rustup_toolchain: $(minimum_supported_version)
steps:
- template: /az-pipeline/unstable/rustup.yml@crate-ci
parameters:
rustup_toolchain: $(rustup_toolchain)
- script: cargo check --verbose
displayName: Compile
- script: cargo test --verbose
displayName: Test
- script: printenv
displayName: Dump (baseline)
- script: cargo run --verbose
displayName: Dump