Rely on docs.rs for documentation rather than hosting our own
This commit is contained in:
parent
13a0456236
commit
47659c6006
2 changed files with 4 additions and 39 deletions
38
.travis.yml
38
.travis.yml
|
@ -15,14 +15,6 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- libelf-dev
|
|
||||||
- libdw-dev
|
|
||||||
- binutils-dev
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k="
|
- secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k="
|
||||||
|
@ -32,36 +24,6 @@ script:
|
||||||
- cargo build --verbose --features iron-handlers
|
- cargo build --verbose --features iron-handlers
|
||||||
- cargo test --verbose --features "iron-handlers expose-test-schema"
|
- cargo test --verbose --features "iron-handlers expose-test-schema"
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- rm -rf target/package/
|
|
||||||
- cargo package --verbose
|
|
||||||
|
|
||||||
- |
|
|
||||||
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cargo doc --features iron-handlers
|
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
|
|
||||||
chmod 600 ~/.ssh/id_rsa
|
|
||||||
|
|
||||||
git clone --branch gh-pages git@github.com:mhallin/juniper deploy_docs
|
|
||||||
cd deploy_docs
|
|
||||||
|
|
||||||
git config user.name 'Juniper Documentation Builder'
|
|
||||||
git config user.email 'nobody@example.com'
|
|
||||||
|
|
||||||
rm -rf *
|
|
||||||
mv ../target/doc/* .
|
|
||||||
|
|
||||||
echo '<meta http-equiv="refresh" content="0; url=juniper/index.html">' > index.html
|
|
||||||
|
|
||||||
git add -A *
|
|
||||||
git commit -qm 'Update documentation for Juniper'
|
|
||||||
git push -q origin gh-pages
|
|
||||||
fi
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
|
|
@ -5,11 +5,14 @@ authors = ["Magnus Hallin <mhallin@fastmail.com>"]
|
||||||
description = "GraphQL server library"
|
description = "GraphQL server library"
|
||||||
license = "BSD-2-Clause"
|
license = "BSD-2-Clause"
|
||||||
documentation = "http://mhallin.github.io/juniper"
|
documentation = "http://mhallin.github.io/juniper"
|
||||||
repository = "https://github.com/mhallin/juniper"
|
repository = "https://docs.rs/juniper"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["graphql", "server", "iron", "http", "web"]
|
keywords = ["graphql", "server", "iron", "http", "web"]
|
||||||
categories = ["web-programming"]
|
categories = ["web-programming"]
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
features = [ "iron-handlers" ]
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "bench"
|
name = "bench"
|
||||||
harness = false
|
harness = false
|
||||||
|
|
Loading…
Reference in a new issue