mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 11:12:25 +00:00
cfb69ad256
This commit aims to have the end goal of adding AppVeyor CI support to this repo, and along the way it ended up meaning that the dependency installation bits were rewritten in Python. This has a number of benefits: * Python is more portable than shell * Python is more readable than shell * curl is no longer required on Windows (powershell is used for downloads) There are also a few minor updates made as part of this commit as well: * The README has been updated in how to build Cargo * We now use `sudo: false` on Travis for faster builds. This is done by specifying packages to install instead of installing them ourselves. * pkg-config is no longer listed as a required program
38 lines
877 B
YAML
38 lines
877 B
YAML
language: rust
|
|
sudo: false
|
|
install:
|
|
- python src/etc/install-deps.py
|
|
script:
|
|
- ./configure --local-rust-root=`pwd`/rustc --prefix=$HOME/cargo-install
|
|
- 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=
|
|
- RUST_TEST_THREADS=1
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-multilib
|
|
- lib32stdc++6
|