Skip to content

Commit e8f6ced

Browse files
committed
Configure azure pipelines
1 parent 288c0ba commit e8f6ced

File tree

2 files changed

+22
-33
lines changed

2 files changed

+22
-33
lines changed

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
# Starter pipeline
2-
# Start with a minimal pipeline that you can customize to build and deploy your code.
3-
# Add steps that build, run tests, deploy, and more:
4-
# https://aka.ms/yaml
5-
61
trigger:
7-
- master
8-
9-
pool:
10-
vmImage: 'Ubuntu-16.04'
11-
12-
steps:
13-
- script: echo Hello, world!
14-
displayName: 'Run a one-line script'
2+
- master
153

16-
- script: |
17-
echo Add other tasks to build, test, and deploy your project.
18-
echo See https://aka.ms/yaml
19-
displayName: 'Run a multi-line script'
4+
jobs:
5+
- job: publish
6+
steps:
7+
- bash: |
8+
set -e
9+
curl https://sh.rustup.rs -sSf | sh -s -- -y
10+
echo "##vso[task.prependpath]$HOME/.cargo/bin"
11+
displayName: Install rust
12+
- script: |
13+
set -e
14+
curl -L https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-musl.tar.gz | tar xzf -
15+
echo "##vso[task.prependpath]$PWD"
16+
displayName: Install mdbook
17+
- script: bundler install
18+
displayName: Install ruby deps
19+
- script: ./ci/build.sh
20+
displayName: Build site
21+
- script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd _site && ../rust_out)
22+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
23+
env:
24+
GITHUB_DEPLOY_KEY: $(GITHUB_DEPLOY_KEY)

0 commit comments

Comments
 (0)