This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.azure-ci.yaml
54 lines (51 loc) · 1.52 KB
/
.azure-ci.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
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 stable'
- script: |
$HOME/.cargo/bin/cargo check
displayName: 'Check MeiliES stable'
- script: |
$HOME/.cargo/bin/cargo test
displayName: 'Test MeiliES stable'
- job: build
dependsOn:
- test
condition: succeeded()
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
ubuntu1604:
containerResource: tpayet/chiquitita:latest
artifactResource: MeiliES-ubuntu16.04
centos7:
containerResource: tpayet/fernando:latest
artifactResource: MeiliES-centos7
container: $[ variables['containerResource'] ]
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
displayName: 'Install rustc'
- script: |
$HOME/.cargo/bin/cargo build --all-features --release
displayName: 'Build MeiliES'
- task: CopyFiles@2
inputs:
contents: '$(System.DefaultWorkingDirectory)/target/release/*'
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: 'Copy build'
- task: PublishBuildArtifacts@1
inputs:
artifactName: $(artifactResource)
displayName: 'Upload artifacts'