Skip to content
Snippets Groups Projects
Unverified Commit befca562 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #95 from ids1024/travis

Use build matrix on Travis CI
parents 362849f0 b7d68895
No related branches found
No related tags found
No related merge requests found
language: rust
env:
-
- TARGET=aarch64-unknown-linux-gnu
- TARGET=x86_64-unknown-redox
rust:
- nightly
cache: cargo
before_script:
- rustup component add rustfmt-preview
- rustup target add x86_64-unknown-redox
- rustup target add aarch64-unknown-linux-gnu
- if [ -n "$TARGET" ]; then rustup target add $TARGET; fi
script:
- bash ./ci.sh
- ./fmt.sh -- --write-mode=diff
- cargo build $([ -n "$TARGET" ] && echo --target="$TARGET")
- if [ -z "$TARGET" ]; then ./test.sh; fi
notifications:
email: false
#!/bin/bash
set -ex
./fmt.sh -- --write-mode=diff
./test.sh
cargo build --target=x86_64-unknown-redox
if [ $(arch) == "x86_64" ]
then
cargo build --target=aarch64-unknown-linux-gnu
else
cargo build --target=x86_64-unknown-linux-gnu
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment