sd/azure-pipelines.yml

63 lines
1.3 KiB
YAML
Raw Normal View History

2019-03-03 03:17:44 +00:00
trigger:
branches:
2019-04-15 03:11:07 +00:00
include: ['*']
tags:
include: ['*']
2019-03-03 03:17:44 +00:00
2019-06-16 19:44:55 +00:00
resources:
repositories:
- repository: templates
type: github
name: xoac/rust-azure-pipelines
ref: refs/tags/v0.0.2
2019-06-16 19:54:01 +00:00
endpoint: githubConnection
2019-06-16 19:44:55 +00:00
2019-03-03 03:17:44 +00:00
jobs:
2019-06-16 19:44:55 +00:00
# This represents the minimum Rust version supported.
# Tests are not run as tests may require newer versions of rust.
- template: ci/cargo-check.yml@templates
parameters:
name: minrust
rust_version: 1.31.0 # The 2018 edition
displayName: Check rust min ver
################
# Test stage #
###############
# Test stable
- template: ci/test.yml@templates
parameters:
name: cargo_test_stable
displayName: Cargo test
cross: true # Test on Windows and macOS
###################
# DEPLOY PART #
###################
2019-03-03 03:17:44 +00:00
2019-06-16 19:44:55 +00:00
# Release binary
- template: ci/github-release.yml@templates
parameters:
name: github_release
dependsOn:
- minrust
- cargo_test_stable
- cargo_cross
rust_version: stable
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
2019-06-16 19:44:55 +00:00
contents: |
*
!*.rlib
!*.d
!.*
targets:
- x86_64-unknown-linux-gnu
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
github:
gitHubConnection: githubConnection
repositoryName: chmln/sd
2019-03-03 03:17:44 +00:00