1
0
mirror of https://github.com/actix/actix-website synced 2024-11-23 16:31:08 +01:00

add travis config

This commit is contained in:
Nikolay Kim 2018-04-13 20:17:52 -07:00
parent 750032c5a6
commit c1a93e8769
2 changed files with 16 additions and 0 deletions

15
.travis.yml Normal file
View File

@ -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

1
CNAME Normal file
View File

@ -0,0 +1 @@
actix.rs