test 1 travis

This commit is contained in:
Carl Fredrik Samson
2020-01-25 15:22:17 +01:00
parent 192861428f
commit 5be7bd8203
2 changed files with 25 additions and 29 deletions

View File

@@ -1,29 +0,0 @@
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
# mdbook-version: '0.3.4'
- run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./book

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
language: rust
sudo: false
cache:
- cargo
rust:
- stable
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
- cargo install-update -a
script:
- mdbook build path/to/mybook && mdbook test path/to/mybook
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_DEPLOY_KEY
local-dir: path/to/mybook/book
keep-history: false
on:
branch: master