Compare commits
3 commits
master
...
fluffyemil
Author | SHA1 | Date | |
---|---|---|---|
|
4b82693e20 | ||
|
8948c8436a | ||
|
11f0497375 |
3 changed files with 20 additions and 10 deletions
15
.travis.yml
15
.travis.yml
|
@ -18,9 +18,20 @@ jobs:
|
||||||
- stage: "Test iOS"
|
- stage: "Test iOS"
|
||||||
rust: 1.25.0
|
rust: 1.25.0
|
||||||
script: ./scripts/test-ios.sh
|
script: ./scripts/test-ios.sh
|
||||||
- stage: "Docs"
|
- stage: deploy
|
||||||
|
if: branch = master
|
||||||
rust: 1.25.0
|
rust: 1.25.0
|
||||||
script: ./scripts/cargo-doc.sh
|
script: ./scripts/build-doc.sh
|
||||||
|
deploy:
|
||||||
|
provider: pages
|
||||||
|
skip-cleanup: true
|
||||||
|
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
|
||||||
|
keep-history: true
|
||||||
|
local-dir: docs/apis/latest
|
||||||
|
target-branch: gh-pages-api-docs
|
||||||
|
verbose: true
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
script:
|
script:
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all
|
||||||
- cargo test --features edn/serde_support --verbose --all
|
- cargo test --features edn/serde_support --verbose --all
|
||||||
|
|
7
scripts/build-doc.sh
Executable file
7
scripts/build-doc.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# if [[ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
||||||
|
cargo doc --all --no-deps --release && cp -r target/doc/* docs/apis/latest/rust
|
||||||
|
gem install jazzy
|
||||||
|
jazzy --source-directory sdks/swift/Mentat/ -o docs/apis/latest/swift
|
||||||
|
# fi
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [[ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
|
||||||
cargo doc &&
|
|
||||||
echo "<meta http-equiv=refresh content=0;url=mentat/index.html>" > target/doc/index.html &&
|
|
||||||
git clone https://github.com/davisp/ghp-import.git &&
|
|
||||||
./ghp-import/ghp_import.py -n -p -f -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc
|
|
||||||
fi
|
|
Loading…
Reference in a new issue