2019-02-22 15:51:30 +01:00
|
|
|
pool:
|
2020-10-08 18:48:05 +02:00
|
|
|
vmImage: 'Ubuntu-18.04'
|
2019-02-22 15:51:30 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
ls -la
|
2019-10-15 21:21:37 +02:00
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $(cat rust-toolchain) --profile=minimal
|
2019-02-22 15:51:30 +01:00
|
|
|
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
|
|
|
displayName: 'Install Rust'
|
|
|
|
|
2019-05-20 21:54:01 +02:00
|
|
|
- script: |
|
2019-05-20 21:59:18 +02:00
|
|
|
sudo apt-get update
|
2020-10-08 18:48:05 +02:00
|
|
|
sudo apt-get install -y --no-install-recommends build-essential libmariadb-dev-compat libpq-dev libssl-dev pkgconf
|
|
|
|
displayName: 'Install build libraries.'
|
2019-05-20 21:54:01 +02:00
|
|
|
|
2019-02-22 15:51:30 +01:00
|
|
|
- script: |
|
|
|
|
rustc -Vv
|
|
|
|
cargo -V
|
|
|
|
displayName: Query rust and cargo versions
|
|
|
|
|
2020-10-08 18:48:05 +02:00
|
|
|
- script : cargo test --features "sqlite,mysql,postgresql"
|
|
|
|
displayName: 'Test project with sqlite, mysql and postgresql backends'
|