Skip to content

Commit

Permalink
Merge pull request #7 from chalharu/release/0.1.1
Browse files Browse the repository at this point in the history
Release/0.1.1
  • Loading branch information
chalharu committed Oct 5, 2017
2 parents 267de32 + 6b36100 commit 8dcba7d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ addons:
- libiberty-dev

before_script:
- |
if [ "${TRAVIS_OS_NAME}" = 'osx' ]; then
export PATH=$HOME/Library/Python/2.7/bin:$PATH
fi
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
cargo install cargo-kcov
Expand All @@ -33,6 +37,13 @@ before_script:
cd ${TRAVIS_BUILD_DIR}
rm -rf kcov
fi
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
pip install 'ghp-import' --user
pip install 'pytoml' --user
export CARGO_PACKAGE_NAME=$(python get_cargo_package_name.py)
echo CARGO_PACKAGE_NAME=$CARGO_PACKAGE_NAME
fi
script:
- cargo build
Expand All @@ -50,8 +61,7 @@ script:
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
cargo doc --no-deps &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
pip install 'ghp-import' --user &&
echo "<meta http-equiv=refresh content=0;url=`echo $CARGO_PACKAGE_NAME`/index.html>" > target/doc/index.html &&
ghp-import -n target/doc
fi
- |
Expand All @@ -75,5 +85,7 @@ env:
secure: qwMSXpdCryGDyfiy1lXEcR/kWhATlQGVNAqV83n9uBKDLP6WsX4C25zMAz1/0wkjiorBMNFGhxMLI956md7V84sLX+6FNfA0tRODtAnJYyjR3AX4RkXB6zFhbTqWg/2BAefJ7Y7Vy0qKLKbqFq6023lKg09Mk80fEReba4PisrMgfj3LCCUarAnxfuFnAB7LmlvWXHNd3w+x6dV8fxO0Zw6QoqB9wQQvQzIiApqWCTyoxQhW+qzo6bXrctPct/OGNhmf4I0l1QJBGPN6qpFrxSjFljbxqIBiagCb6k1WERpok2FiNjhXCowUhTMyaGIlZLaVLjuISu8+aCyHZqK/yQLIDwWm5iY3Ko1gUbhvcg3aQV2ovpN8nxrQaiEkhg8mUPDPG0NencibFItb510L/VK3UkBWgTcKmwMjsqErh/l3a6UvezSAkUHrkMMAGLSrKnveFXeGCTwePLN40NgqJzuKsaSL+gqlTP7dHVtWpsBIvmrK7x4ItwWGRETYQR9HJQbeX+bxQSDJRpkuSTmY1iFL6GF1R0SNRYjXIeZ8Ei8F6O0RqUl7sWjMf9KEWD1LVkWj3X8eM+lTLyNSzP9BGlTP/Q34oJ2LKc4lYj59NE5ai4/rzfz0p8/ANoEJxUJoYgkdl90jw90UltPEjxD7YeCJ8WVhB4tp72qV44RtlDA=

cache:
- cargo
- apt
cargo: true
apt: true
pip: true

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "nearly_eq"
version = "0.1.0"
version = "0.1.1"
authors = ["Mitsuharu Seki <mitsu1986@gmail.com>"]
repository = "https://github.com/chalharu/rust-nearly-eq"
keywords = ["assert"]
license = "MPL-2.0"
readme = "README.md"
description = "Nearly equal traits and assertion"
documentation = "https://docs.rs/nearly-eq/"
documentation = "https://docs.rs/nearly_eq/"

[lib]
name = "nearly_eq"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rust-nearly-eq
[![crates.io badge](https://img.shields.io/crates/v/nearly-eq.svg)](https://crates.io/crates/nearly-eq)
[![Build Status](https://travis-ci.org/chalharu/rust-nearly-eq.svg)](https://travis-ci.org/chalharu/rust-nearly-eq)
[![docs.rs](https://docs.rs/nearly-eq/badge.svg)](https://docs.rs/nearly-eq)
[![docs.rs](https://docs.rs/nearly_eq/badge.svg)](https://docs.rs/nearly_eq)
[![Coverage Status](https://coveralls.io/repos/github/chalharu/rust-nearly-eq/badge.svg)](https://coveralls.io/github/chalharu/rust-nearly-eq)

rust crate: nearly equal
5 changes: 5 additions & 0 deletions get_cargo_package_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pytoml as toml
with open('Cargo.toml', 'rb') as fin:
obj = toml.load(fin)

print(obj["package"]["name"])

0 comments on commit 8dcba7d

Please sign in to comment.