From c1a93e87696889c3f67b27a6bd177ae731c5ae69 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 13 Apr 2018 20:17:52 -0700 Subject: [PATCH] add travis config --- .travis.yml | 15 +++++++++++++++ CNAME | 1 + 2 files changed, 16 insertions(+) create mode 100644 .travis.yml create mode 100644 CNAME diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f925c5f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: rust +sudo: false +dist: trusty + +# build website +script: + - export PATH=$PATH:~/.cargo/bin + - | + if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then + curl -sL https://github.com/cobalt-org/cobalt.rs/releases/download/v0.12.1/cobalt-v0.12.1-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C $HOME/.cargo/bin && + cobalt build && cp CNAME ./_site/ && + git clone https://github.com/davisp/ghp-import.git && + ./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -b master -r https://"$GH_TOKEN"@github.com/actix/actix.github.io.git" _site && + echo "Uploaded documentation" + fi diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..d22c381 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +actix.rs \ No newline at end of file