Christian Legnitto 2019-04-16 21:27:24 -07:00
parent 17e564c6f0
commit 94cc621598
2 changed files with 58 additions and 57 deletions

View file

@ -1,6 +1,5 @@
jobs:
- job: check_formatting
- job: check_formatting
displayName: Check formatting
pool:
vmImage: ubuntu-16.04
@ -13,7 +12,7 @@ jobs:
$HOME/.cargo/bin/cargo fmt -- --check
displayName: Run rustfmt
- job: run_book_tests
- job: run_book_tests
displayName: Book code example tests
pool:
vmImage: ubuntu-16.04
@ -26,7 +25,7 @@ jobs:
cd docs/book/tests && $HOME/.cargo/bin/cargo test
displayName: Test book code examples via skeptic
- job: build_book_master
- job: build_book_master
displayName: Build rendered book on master branch and push to Github
pool:
vmImage: ubuntu-16.04
@ -35,25 +34,25 @@ jobs:
variables:
- group: github-keys
steps:
# - task: InstallSSHKey@0
# inputs:
# hostName: $(secret.GHSshKnownHosts)
# sshPublicKey: $(secret.GHSshPub)
# sshKeySecureFile: $(secret.GHSshPriv)
- task: InstallSSHKey@0
inputs:
hostName: $(GHSshKnownHosts)
sshPublicKey: $(GHSshPub)
sshKeySecureFile: $(GHSshPriv)
- script: |
./docs/book/ci-build.sh master
- template: _build/azure-pipelines-template.yml
- template: _build/azure-pipelines-template.yml
parameters:
name: Linux
vmImage: ubuntu-16.04
- template: _build/azure-pipelines-template.yml
- template: _build/azure-pipelines-template.yml
parameters:
name: macOS
vmImage: macOS-10.13
- template: _build/azure-pipelines-template.yml
- template: _build/azure-pipelines-template.yml
parameters:
name: Windows
vmImage: vs2017-win2016

View file

@ -44,6 +44,8 @@ git clean -fd
git checkout gh-pages
rm -rf $VERSION
mv /tmp/book-content ./$VERSION
git config --local user.name "Juniper Doc Bot"
git config --local user.email "juniper@example.com"
git add -A $VERSION
git commit -m "Updated book for $VERSION"
git commit -m "Updated book for $VERSION ***NO_CI***"
git push origin gh-pages