Skip to content

Commit

Permalink
ci: fixed travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
iwasaki-kenta committed Feb 19, 2019
1 parent a5f399a commit be612e4
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,32 @@ git:

matrix:
include:
- language: go

- name: "Run Unit Tests"
language: go
go:
- "1.11"

install: true

script:
- GO111MODULE=on go test -coverprofile=coverage.txt -covermode=atomic -bench -race ./...

after_success:
- bash <(curl -s https://codecov.io/bash)

- language: rust

cache:
- cargo

rust:
- stable

- name: "Build Documentation"
language: rust
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.1" mdbook)
- cargo install-update -a

script:
- cd docs && mdbook build && mdbook test

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: docs/book
keep-history: false
on:
branch: master
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: docs/book
keep-history: false
on:
branch: master

0 comments on commit be612e4

Please sign in to comment.