mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 21:54:36 +03:00
Drop travis-cargo
This commit is contained in:
parent
3b02b27d62
commit
ed6714f7fc
11
.travis.yml
11
.travis.yml
@ -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
34
.travis/docs.sh
Executable 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
|
@ -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)
|
||||
|
||||
-----
|
||||
|
Loading…
Reference in New Issue
Block a user