File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 15
15
submodules : false
16
16
17
17
sudo : required
18
+ services :
19
+ - docker
18
20
install :
19
21
-
git config --global user.email "[email protected] "
20
22
- git config --global user.name "Diggory Blake (via Travis CI)"
@@ -23,15 +25,30 @@ install:
23
25
- echo -e "\033[33;1mDownloading Rust\033[0m"
24
26
- curl -sL http://static.rust-lang.org/dist/rust-nightly-$TARGET.tar.gz | tar --strip-components=1 -C ~/rust -xzf -
25
27
- if [ "$TARGET" == "i686-unknown-linux-gnu" ]; then
28
+ sudo dpkg --add-architecture i386;
26
29
sudo apt-get update;
27
- sudo apt-get install libc6-dev:i386 libstdc++6:i386 zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 gcc-multilib;
30
+ sudo apt-get install -y libc6-dev:i386 libstdc++6:i386 zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 gcc-multilib;
28
31
fi
29
32
- echo -e "\033[33;1mInstalling Rust\033[0m"
30
33
- sudo ~/rust/install.sh
31
34
32
35
script :
33
- - export OPENSSL_STATIC=1
34
- - cargo build --release --verbose
36
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
37
+ docker run
38
+ --entrypoint bash
39
+ -u `id -u`:`id -g`
40
+ -v /usr/local:/usr/local:ro
41
+ -v `pwd`:/buildslave
42
+ -v $HOME:/home/rustbuild
43
+ -e HOME=/home/rustbuild
44
+ -e LD_LIBRARY_PATH=/usr/local/lib
45
+ -e OPENSSL_STATIC=1
46
+ -e OPENSSL_LIB_DIR=/rustroot/cargo$BITS/lib
47
+ -it alexcrichton/rust-slave-dist:2015-10-20b
48
+ -c "cargo build --release --verbose";
49
+ else
50
+ cargo build --release --verbose;
51
+ fi
35
52
- find "target/release/" -maxdepth 1 -type f -exec sh -c 'sha256sum -b "{}" | cut -d\ -f1 > "{}.sha256"' \;
36
53
- cargo test --verbose
37
54
- tests/cli.sh
You can’t perform that action at this time.
0 commit comments