aboutsummaryrefslogtreecommitdiff
path: root/cc/ci/azure-steps.yml
blob: bbf8ec620f7bd6f7da36b1e491a8205186745ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
steps:
  - template: azure-install-rust.yml
  - bash: rustup target add $TARGET
    displayName: Install Rust target

  # Remove the ubuntu-toolchain-r/test PPA, which is added by default. Some
  # packages were removed, and this is causing the g++multilib install to fail.
  # Similar issue: https://github.com/scikit-learn/scikit-learn/issues/13928
  - bash: sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
    condition: eq( variables['Agent.OS'], 'Linux' )
    displayName: Remove ppa:ubuntu-toolchain-r/test

  - bash: sudo apt-get install g++-multilib
    condition: eq( variables['Agent.OS'], 'Linux' )
    displayName: Install g++-multilib

  - script: cargo build
    displayName: "Normal build"
  - bash: cargo test $NO_RUN
    displayName: "Crate tests"
  - bash: cargo test $NO_RUN --features parallel
    displayName: "Crate tests (parallel)"
  - bash: cargo test $NO_RUN --manifest-path cc-test/Cargo.toml --target $TARGET
    displayName: "cc-test tests"
  - bash: cargo test $NO_RUN --manifest-path cc-test/Cargo.toml --target $TARGET --features parallel
    displayName: "cc-test tests (parallel)"
  - bash: cargo test $NO_RUN --manifest-path cc-test/Cargo.toml --target $TARGET --release
    displayName: "cc-test tests (release)"