Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

update racer/rustfmt to complete rustc-ap* bump #1680

Closed
Closed
Changes from 1 commit
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
Prev Previous commit
ci: include CFG_RELASE vars for rustc-ap crates
calebcartwright committed Jun 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 088289bd62873d23864e60ceee0ab6cba4ba0db8
39 changes: 35 additions & 4 deletions ci/azure-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
jobs:
# Check formatting
- job: ${{ parameters.name }}
variables:
cfgRelease: ''
cfgReleaseChannel: ${{ parameters.rust }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think RLS will build on stable/beta in the nearest future so I think we should just globally set these variables for simplicity and call it a day

displayName: Run tests on
strategy:
matrix:
@@ -19,11 +22,39 @@ jobs:
- script: |
rustup component add rust-src rust-analysis rustc-dev llvm-tools-preview
displayName: Install distributed Rust source code for Racer autocompletion
- script: |
CFG_RELEASE=$(rustc --version | cut -d ' ' -f 2 | cut -d '-' -f 1)
echo "##vso[task.setvariable variable=cfgRelease]$CFG_RELEASE"
displayName: Set CFG_RELEASE variable
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
- powershell: |
$rustVersion = rustc --version
$rustVersionParts = $rustVersion -split " " -split "-"
$cfgRelease = $rustVersionParts[1]
Write-Host "##vso[task.setvariable variable=cfgRelease]$cfgRelease"
displayName: Set CFG_RELEASE variables
condition: eq(variables['Agent.OS'], 'Windows_NT')
- ${{ each crate in parameters.crates }}:
- script: cargo test -v
- script: CFG_RELEASE_CHANNEL=$(cfgReleaseChannel) CFG_RELEASE=$(cfgRelease) cargo test -v
displayName: Run tests - ${{ crate.key }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
- script: |
set CFG_RELEASE_CHANNEL=$(cfgReleaseChannel)
set CFG_RELEASE=$(cfgRelease)
cargo test -v
displayName: Run tests - ${{ crate.key }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
condition: eq(variables['Agent.OS'], 'Windows_NT')
- ${{ each extra in crate.value }}:
- script: cargo test -v ${{ extra.args }} ${{ extra.test_name }} -- ${{ extra.test_args }}
displayName: Run tests - ${{ crate.key }} - ${{ extra.test_name }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
- ${{ if not(eq(variables['Agent.OS'], 'Windows_NT')) }}:
- script: CFG_RELEASE_CHANNEL=$(cfgReleaseChannel) CFG_RELEASE=$(cfgRelease) cargo test -v ${{ extra.args }} ${{ extra.test_name }} -- ${{ extra.test_args }}
displayName: Run tests - ${{ crate.key }} - ${{ extra.test_name }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
- ${{ if eq(variables['Agent.OS'], 'Windows_NT') }}:
- script: |
set CFG_RELEASE_CHANNEL=$(cfgReleaseChannel)
set CFG_RELEASE=$(cfgRelease)
cargo test -v ${{ extra.args }} ${{ extra.test_name }} -- ${{ extra.test_args }}
displayName: Run tests - ${{ crate.key }} - ${{ extra.test_name }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}