-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from dulanov/task/travis
Travis doesn't build for stable and i686 architecture
- Loading branch information
Showing
1 changed file
with
11 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,23 @@ | ||
language: rust | ||
cache: cargo | ||
rust: stable | ||
#env: | ||
# global: | ||
# - TARGET=x86_64-unknown-linux-gnu | ||
matrix: | ||
include: | ||
- rust: beta | ||
- rust: nightly | ||
# - env: TARGET=i686-unknown-linux-gnu | ||
# addons: | ||
# apt: | ||
# packages: | ||
# - gcc-multilib | ||
# - os: osx | ||
# env: TARGET=x86_64-apple-darwin | ||
# - os: osx | ||
# env: TARGET=i686-apple-darwin | ||
# - os: osx | ||
# rust: beta | ||
# env: TARGET=x86_64-apple-darwin | ||
# - os: osx | ||
# rust: beta | ||
# env: TARGET=i686-apple-darwin | ||
allow_failures: | ||
- rust: nightly | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
os: | ||
- linux | ||
- osx | ||
notifications: | ||
email: | ||
on_success: never | ||
before_install: | ||
# - rustup target add $TARGET || true | ||
- travis_wait cargo install rustfmt --force || true | ||
before_script: | ||
- export PATH="$PATH":~/.cargo/bin | ||
- echo "\$ rustfmt --version" | ||
- cd emerald-core | ||
- cargo fmt -- --version | ||
- cd .. | ||
- cargo fmt --all -- --version | ||
script: | ||
- export RUST_BACKTRACE=1 | ||
- cd emerald-core | ||
- cargo fmt -- --verbose --write-mode=diff | ||
- cd ../emerald-cli | ||
- cargo fmt -- --verbose --write-mode=diff | ||
# - test "$TRAVIS_RUST_VERSION" == nightly || cargo test --target=$TARGET --verbose | ||
# - test "$TRAVIS_RUST_VERSION" != nightly || cargo test --target=$TARGET --verbose --features "dev" | ||
# [Two different crates with name 'X' error only when using --target=](https://github.com/rust-lang/cargo/issues/3665) | ||
# - cargo build --target=$TARGET --verbose --release | ||
- test "$TRAVIS_RUST_VERSION" == nightly || cargo test --verbose | ||
- test "$TRAVIS_RUST_VERSION" != nightly || cargo test --verbose --features "dev" | ||
- cargo build --verbose --release | ||
- cargo doc --no-deps | ||
- cargo fmt --all -- --verbose --write-mode=diff | ||
- cargo test --all --verbose | ||
- cargo build --all --verbose --release |