forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 2
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 rust-lang#22 from alexcrichton/make
Allow executing an arbitrary command before building
- Loading branch information
Showing
12 changed files
with
348 additions
and
42 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
set -ex | ||
|
||
# Install a 32-bit compiler for linux | ||
sudo apt-get update | ||
sudo apt-get install gcc-multilib | ||
target=unknown-linux-gnu | ||
|
||
# Install both 64 and 32 bit libraries. Apparently travis barfs if you try to | ||
# just install the right ones? This should enable cross compilation in the | ||
# future anyway. | ||
curl -O http://static.rust-lang.org/dist/rust-nightly-x86_64-$target.tar.gz | ||
curl -O http://static.rust-lang.org/dist/rust-nightly-i686-$target.tar.gz | ||
tar xfz rust-nightly-x86_64-$target.tar.gz | ||
tar xfz rust-nightly-i686-$target.tar.gz | ||
cp -r rust-nightly-i686-$target/lib/rustlib/i686-$target \ | ||
rust-nightly-x86_64-$target/lib/rustlib | ||
(cd rust-nightly-x86_64-$target && \ | ||
find lib/rustlib/i686-$target/lib -type f >> \ | ||
lib/rustlib/manifest.in) | ||
sudo ./rust-nightly-x86_64-$target/install.sh | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: rust | ||
|
||
install: | ||
- ./.travis.install.deps.sh | ||
|
||
script: | ||
- make CC="$CC" RUSTC="$RUSTC" -j4 | ||
- make CC="$CC" RUSTC="$RUSTC" test -j4 | ||
|
||
env: | ||
- ARCH=i686 CC='cc -m32' RUSTC='rustc --target=i686-unknown-linux-gnu' | ||
- ARCH=x86_64 CC=cc RUSTC='rustc --target=x86_64-unknown-linux-gnu' | ||
|
||
os: | ||
- linux | ||
- osx |
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
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
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
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
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
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
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
Oops, something went wrong.