Drop travis-cargo

This commit is contained in:
강동윤 2018-01-13 21:04:15 +09:00 committed by GitHub
parent 3b02b27d62
commit ed6714f7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 8 deletions

View File

@ -19,21 +19,18 @@ before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
export TRAVIS_CARGO_NIGHTLY_FEATURE="" &&
cargo build --verbose --all &&
cargo test --verbose --all &&
travis-cargo doc
cargo test --all
after_success:
- bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
- cargo tarpaulin --out Xml
- bash <(curl -s https://codecov.io/bash)
- travis-cargo doc-upload
- '[ $TRAVIS_PULL_REQUEST = false ] &&
[ "$TRAVIS_BRANCH" == "master" ] &&
./.travis/docs.sh'
notifications:
email:
on_success: never

34
.travis/docs.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
# Copied from https://github.com/hyperium/hyper/blob/master/.travis/docs.sh
# which is MIT-licensed.
set -o errexit
shopt -s globstar
cargo doc
git clone --branch gh-pages "https://$GH_TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1
cd deploy_docs
git config user.name "강동윤"
git config user.email "kdy1@outlook.kr"
if [ "$TRAVIS_TAG" = "" ]; then
rm -rf master
mv ../target/doc ./master
echo "<meta http-equiv=refresh content=0;url=swc/index.html>" > ./master/index.html
fi
git add -A .
git commit -m "rebuild pages at ${TRAVIS_COMMIT}"
echo
echo "Pushing docs..."
git push --quiet origin gh-pages > /dev/null 2>&1
echo
echo "Docs published."
echo

View File

@ -1,6 +1,6 @@
# spdy web compiler
[![Build Status](https://travis-ci.org/kdy1/swc.svg?branch=ecmascript)](https://travis-ci.org/kdy1/swc)
[![Build Status](https://travis-ci.org/kdy1/swc.svg?branch=master)](https://travis-ci.org/kdy1/swc)
[![codecov](https://codecov.io/gh/kdy1/swc/branch/master/graph/badge.svg)](https://codecov.io/gh/kdy1/swc)
-----