Add iOS build task

This commit is contained in:
Emily Toop 2018-08-08 15:02:56 +01:00
parent 2ddb5fd3f4
commit d724cc03fe

View file

@ -3,54 +3,54 @@ matrix:
allow_failures:
- rust: nightly
include:
- language: rust
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
# (The version in Travis's default Ubuntu Trusty is much too old).
os: osx
before_install:
- brew install sqlcipher --with-fts
rust: 1.25.0 # Must align with `build/version.rs`.
script:
- ./scripts/cargo_test.sh
after_success:
- |
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
cache: cargo
- language: rust
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
# (The version in Travis's default Ubuntu Trusty is much too old).
os: osx
before_install:
- brew install sqlcipher --with-fts
rust: stable
script:
- ./scripts/cargo_test.sh
cache: cargo
- language: rust
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
# (The version in Travis's default Ubuntu Trusty is much too old).
os: osx
before_install:
- brew install sqlcipher --with-fts
rust: beta
script:
- ./scripts/cargo_test.sh
cache: cargo
- language: rust
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
# (The version in Travis's default Ubuntu Trusty is much too old).
os: osx
before_install:
- brew install sqlcipher --with-fts
rust: nightly
script:
- ./scripts/cargo_test.sh
cache: cargo
# - language: rust
# # We use OSX so that we can get a reasonably up to date version of SQLCipher.
# # (The version in Travis's default Ubuntu Trusty is much too old).
# os: osx
# before_install:
# - brew install sqlcipher --with-fts
# rust: 1.25.0 # Must align with `build/version.rs`.
# script:
# - ./scripts/cargo_test.sh
# after_success:
# - |
# 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
# cache: cargo
# - language: rust
# # We use OSX so that we can get a reasonably up to date version of SQLCipher.
# # (The version in Travis's default Ubuntu Trusty is much too old).
# os: osx
# before_install:
# - brew install sqlcipher --with-fts
# rust: stable
# script:
# - ./scripts/cargo_test.sh
# cache: cargo
# - language: rust
# # We use OSX so that we can get a reasonably up to date version of SQLCipher.
# # (The version in Travis's default Ubuntu Trusty is much too old).
# os: osx
# before_install:
# - brew install sqlcipher --with-fts
# rust: beta
# script:
# - ./scripts/cargo_test.sh
# cache: cargo
# - language: rust
# # We use OSX so that we can get a reasonably up to date version of SQLCipher.
# # (The version in Travis's default Ubuntu Trusty is much too old).
# os: osx
# before_install:
# - brew install sqlcipher --with-fts
# rust: nightly
# script:
# - ./scripts/cargo_test.sh
# cache: cargo
- language: rust
dist: trusty
rust: stable