mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 13:24:27 +01:00
Replace TravisCI by Azure CI
This commit is contained in:
parent
4900544574
commit
3e452f362c
22
.travis.yml
22
.travis.yml
@ -1,22 +0,0 @@
|
|||||||
language: rust
|
|
||||||
|
|
||||||
cache: cargo
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
include:
|
|
||||||
|
|
||||||
# Test crates on their minimum Rust versions.
|
|
||||||
- rust: 1.32.0
|
|
||||||
name: "meilidb on 1.32.0"
|
|
||||||
script: ./ci/meilidb.sh
|
|
||||||
|
|
||||||
# Test crates on nightly Rust.
|
|
||||||
- rust: nightly
|
|
||||||
name: "meilidb on nightly"
|
|
||||||
script: ./ci/meilidb.sh
|
|
||||||
|
|
54
azure-pipelines.yml
Normal file
54
azure-pipelines.yml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
resources:
|
||||||
|
containers:
|
||||||
|
- container: stable
|
||||||
|
image: rust
|
||||||
|
- container: nightly
|
||||||
|
image: rustlang/rust:nightly
|
||||||
|
|
||||||
|
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 stable
|
||||||
|
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 stable
|
||||||
|
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'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user