From ba2b04ca89c4f559dbd28858a790b6def9f6a9c4 Mon Sep 17 00:00:00 2001 From: Thomas Payet Date: Thu, 2 May 2019 11:43:45 +0200 Subject: [PATCH] Update ci with rust nightly only --- azure-pipelines.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..d0690e319 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,47 @@ +--- +trigger: + branches: + include: [ master ] + +pr: [ master ] + +jobs: + - job: test + pool: + vmImage: 'Ubuntu 16.04' + container: tpayet/chiquitita:latest + steps: + - script: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly + displayName: 'Install rustc' + - script: | + $HOME/.cargo/bin/cargo check + displayName: 'Check MeiliDB' + - script: | + $HOME/.cargo/bin/cargo test + displayName: 'Test MeiliDB' + + - job: build + dependsOn: + - test + condition: succeeded() + pool: + vmImage: 'Ubuntu 16.04' + container: tpayet/chiquitita:latest + steps: + - script: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly + displayName: 'Install rustc' + - script: | + $HOME/.cargo/bin/cargo build --release + displayName: 'Build MeiliDB' + - task: CopyFiles@2 + inputs: + contents: '$(System.DefaultWorkingDirectory)/target/release/libmeilidb.rlib' + targetFolder: $(Build.ArtifactStagingDirectory) + displayName: 'Copy build' + - task: PublishBuildArtifacts@1 + inputs: + artifactName: libmeilidb.rlib + displayName: 'Upload artifacts' +