Skip to content

Commit 98f250a

Browse files
committed
Update travis and bump version number
Update the travis configuration to use the container-based infrastructure instead of the older setup. This also moves to using rustup for the toolchain. Bump the version number to 0.3.2 to include the additions to Rational.
1 parent 3e33b9d commit 98f250a

2 files changed

Lines changed: 39 additions & 21 deletions

File tree

.travis.yml

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
sudo: required
1+
sudo: false
2+
3+
cache: cargo
24

35
install: |
4-
mkdir -p ~/rust && \
56
echo -e "\033[33;1mDownloading Rust\033[0m" && \
6-
curl -sL https://static.rust-lang.org/dist/rust-nightly-$TARGET.tar.gz | tar --strip-components=1 -C ~/rust -xzf -
7+
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-$TARGET && \
8+
export PATH=$HOME/.cargo/bin:$PATH
79
810
before_script: |
9-
sudo apt-get update && \
10-
if [ $BITS -eq 32 ]; then \
11-
sudo apt-get install libc6-dev:i386 libstdc++6:i386 zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 gcc-multilib libgmp-dev:i386; \
12-
else \
13-
sudo apt-get install libgmp-dev
14-
fi && \
15-
sudo ~/rust/install.sh
1611
pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
1712
rustc --version
1813
@@ -28,17 +23,40 @@ script:
2823
after_success:
2924
- if [ -z "$FEATURES" -a "$BITS" = "32" ]; then travis-cargo doc-upload; fi
3025

26+
matrix:
27+
include:
28+
- env:
29+
- TARGET=i686-unknown-linux-gnu
30+
BITS=32
31+
FEATURES=''
32+
addons:
33+
apt:
34+
packages:
35+
- libc6:i386
36+
- libstdc++6:i386
37+
- zlib1g-dev:i386
38+
- libssl-dev:i386
39+
- pkg-config:i386
40+
- gcc-multilib
41+
- libgmp-dev:i386
42+
- env:
43+
- TARGET=x86_64-unknown-linux-gnu
44+
BITS=64
45+
FEATURES=''
46+
addons:
47+
apt:
48+
packages:
49+
- libgmp-dev
50+
- env:
51+
- TARGET=x86_64-unknown-linux-gnu
52+
BITS=64
53+
FEATURES='asm'
54+
addons:
55+
apt:
56+
packages:
57+
- libgmp-dev
58+
3159
env:
32-
matrix:
33-
- TARGET=i686-unknown-linux-gnu
34-
BITS=32
35-
FEATURES=''
36-
- TARGET=x86_64-unknown-linux-gnu
37-
BITS=64
38-
FEATURES=''
39-
- TARGET=x86_64-unknown-linux-gnu
40-
BITS=64
41-
FEATURES='asm'
4260
global:
4361
- TRAVIS_CARGO_NIGHTLY_FEATURE=unstable
4462
- secure: dc4TpJx2YONax6C5967cUmTKH/54pwUtDQu/9+KdjxA75AE1KjibZcg1W5bJhfYaWMPCTT2cwTfvUZP8k2tC0erWQUJv9iWy6MsrDTx88WeHmUlHls4OF64pa0kfSN4+Np4+96WMfFH2nlVGFazXzNeP2Dzwhyh54jW+qEfpICT5PSZm4cuLbhIzMviNu1fwFzQHDlsGnrhhc/rP9riYHIVYF9rCMMAugufKoDYdp4wllowhvVt+2OZlY2i7G0cPr3OZq5DvdQ07JWpGGKBMqSK5dLGTirfBSgTOv28CaCDwKUkTz1JCU3205NjbAnvGFkiym4opjRJpyLBIeRjxGULkodbBsUdg6F5JZTsmyaBaxszzk/l4TFaZ6TaKb2hU1G4EYa1lsPe5NEwOHY2YgGf+eCy/0kA4QpumUktY7844Vn409wJvZ5lmoiWhm6ZZpbu27KnZEBZGdWjfYIUdB3rm07BZcS8CcjYREzO+7rRPNwk3wg6DFFxRCugKMADLBBtndBxqenO12FuFiOkD5kyoufqSioO0quU6kAe5BtU+7+n7+mkzvhq7BowKXadKozNFVyo1rmGnO54z9TLgrwybRmx7pRXKJiYuOxL8T7UUPQUvQE2AYSF9462SdgDmpH+Um7Mojc9jb/qlEqBzHxze4X8Gz+25AcWvbgTVsQU=

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ramp"
33
description = "A high-performance multiple-precision arithmetic library"
4-
version = "0.3.1"
4+
version = "0.3.2"
55
authors = ["James Miller <james@aatch.net>"]
66
build = "build.rs"
77
license = "Apache-2.0"

0 commit comments

Comments
 (0)