mirror of
https://github.com/rust-lang/cargo
synced 2024-10-14 03:32:39 +00:00
8daf33506f
This change mirrors the compiler by enabling optimizations by default rather than by default producing an unoptimized Cargo build. I was curious why #2033 hit a debug assertion when we don't ship any binaries with debug assertions enabled, but it looked like Cargo was installed via Homebrew which [does not currently enable optimizations][homebrew]. I'll also send a PR over there, but I figured it'd be also good to nip this in the bud and just start enabling optimizations by default. [homebrew]: https://github.com/Homebrew/homebrew/blob/5d09dd/Library/Formula/rust.rb#L69
43 lines
920 B
YAML
43 lines
920 B
YAML
language: rust
|
|
rust:
|
|
- 1.2.0
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
sudo: false
|
|
script:
|
|
- ./configure --prefix=$HOME/cargo-install --disable-cross-tests --disable-optimize
|
|
- make
|
|
- make test
|
|
- make distcheck
|
|
- make doc
|
|
- make install
|
|
- make uninstall
|
|
after_success: |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
[ $(uname -s) = Linux ] &&
|
|
pip install ghp-import --user $USER &&
|
|
$HOME/.local/bin/ghp-import -n target/doc &&
|
|
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
env:
|
|
global:
|
|
- secure: scGpeetUfba5RWyuS4yt10bPoFAI9wpHEReIFqEx7eH5vr2Anajk6+70jW6GdrWVdUvdINiArlQ3An2DeB9vEUWcBjw8WvuPtOH0tDMoSsuVloPlFD8yn1Ac0Bx9getAO5ofxqtoNg+OV4MDVuGabEesqAOWqURNrBC7XK+ntC8=
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- kalakris-cmake
|
|
packages:
|
|
- cmake
|
|
- g++-multilib
|
|
- lib32stdc++6
|