Commit ec65b0c6 authored by Steven Fackler's avatar Steven Fackler
Browse files

Move docs to this repo and auto build

parent d06f226b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
/doc/
target/
Cargo.lock
+11 −6
Original line number Diff line number Diff line
@@ -3,10 +3,15 @@ env:
  matrix:
  - FEATURES=""
  - FEATURES="tlsv1_1 tlsv1_2 aes_xts"
  global:
    secure: J4i75AV4KMrU/UQrLIzzIh35Xix40Ki0uWjm8j05oxlXVl5aPU2zB30AemDne2QXYzkN4kRG/iRnNORE/8D0lF7YipQNSNxgfiBVoOEfj/NSogvI2BftYX9vlLZJUvt+s/nbE3xa/Pyge1IPv7itDYGO7SMe8RTSqitgqyfE2Eg=
os:
- osx
- linux
before_script:
- openssl s_server -accept 15418 -www -cert test/cert.pem -key test/key.pem >/dev/null 2>&1 &
script:
  - cargo test --features "$FEATURES"
- (cd openssl && cargo test --features "$FEATURES")
- ./.travis/build_docs.sh
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && ./.travis/update_docs.sh

.travis/build_docs.sh

0 → 100755
+11 −0
Original line number Diff line number Diff line
#!/bin/bash

set -e

mkdir doc

for crate in $(echo openssl-sys openssl); do
    mkdir -p $crate/target
    ln -s -t $crate/target ../../doc
    (cd $crate && cargo doc --no-deps)
done

.travis/update_docs.sh

0 → 100755
+16 −0
Original line number Diff line number Diff line
#!/bin/bash

set -o errexit -o nounset

git clone --branch gh-pages "https://$GH_TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs
cd deploy_docs

git config user.name "Steven Fackler"
git config user.email "sfackler@gmail.com"

rm -rf doc
mv ../doc .

git add -A .
git commit -m "rebuild pages at ${TRAVIS_COMMIT}"
git push
+2 −2
Original line number Diff line number Diff line
rust-openssl [![Build Status](https://travis-ci.org/sfackler/rust-openssl.svg?branch=master)](https://travis-ci.org/sfackler/rust-openssl)
============

See the [rustdoc output](https://sfackler.github.io/doc/openssl).
See the [rustdoc output](https://sfackler.github.io/rust-openssl/doc/openssl).

Building
--------
Loading