Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ jobs:
- stage: "Test iOS"
rust: 1.25.0
script: ./scripts/test-ios.sh
- stage: "Docs"
- stage: deploy
if: branch = master
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:
- cargo test --verbose --all
- cargo test --features edn/serde_support --verbose --all
Expand Down
7 changes: 7 additions & 0 deletions scripts/build-doc.sh
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions scripts/cargo-doc.sh

This file was deleted.