Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Linux binaries in an old CentOS 5 image #27

Merged
merged 1 commit into from
Oct 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ git:
submodules: false

sudo: required
services:
- docker
install:
- git config --global user.email "diggsey@googlemail.com"
- git config --global user.name "Diggory Blake (via Travis CI)"
Expand All @@ -23,15 +25,30 @@ install:
- echo -e "\033[33;1mDownloading Rust\033[0m"
- curl -sL http://static.rust-lang.org/dist/rust-nightly-$TARGET.tar.gz | tar --strip-components=1 -C ~/rust -xzf -
- if [ "$TARGET" == "i686-unknown-linux-gnu" ]; then
sudo dpkg --add-architecture i386;
sudo apt-get update;
sudo apt-get install libc6-dev:i386 libstdc++6:i386 zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 gcc-multilib;
sudo apt-get install -y libc6-dev:i386 libstdc++6:i386 zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 gcc-multilib;
fi
- echo -e "\033[33;1mInstalling Rust\033[0m"
- sudo ~/rust/install.sh

script:
- export OPENSSL_STATIC=1
- cargo build --release --verbose
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run
--entrypoint bash
-u `id -u`:`id -g`
-v /usr/local:/usr/local:ro
-v `pwd`:/buildslave
-v $HOME:/home/rustbuild
-e HOME=/home/rustbuild
-e LD_LIBRARY_PATH=/usr/local/lib
-e OPENSSL_STATIC=1
-e OPENSSL_LIB_DIR=/rustroot/cargo$BITS/lib
-it alexcrichton/rust-slave-dist:2015-10-20b
-c "cargo build --release --verbose";
else
cargo build --release --verbose;
fi
- find "target/release/" -maxdepth 1 -type f -exec sh -c 'sha256sum -b "{}" | cut -d\ -f1 > "{}.sha256"' \;
- cargo test --verbose
- tests/cli.sh
Expand Down