Skip to content

Commit

Permalink
Merge pull request #161 from dulanov/task/travis
Browse files Browse the repository at this point in the history
Travis doesn't build for stable and i686 architecture
  • Loading branch information
r8d8 authored Jun 27, 2017
2 parents 575b968 + 4a0add5 commit 6b2295d
Showing 1 changed file with 11 additions and 41 deletions.
52 changes: 11 additions & 41 deletions .travis.yml
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

0 comments on commit 6b2295d

Please sign in to comment.