Merge pull request #311 from alliedmodders/juju

Use the new Travis-CI Container environment.
This commit is contained in:
Nicholas Hastings 2015-07-14 20:19:11 -04:00
commit 5123527c66
2 changed files with 20 additions and 14 deletions

View File

@ -1,21 +1,27 @@
addons:
apt:
packages:
- clang-3.5
- lib32stdc++6
- lib32z1-dev
- libc6-dev-i386
- linux-libc-dev
- g++-multilib
- g++4.8
sources:
- llvm-toolchain-precise-3.5
- ubuntu-toolchain-r-test
cache:
directories:
- ../mysql-5.0
language: cpp
sudo: false
compiler:
- clang
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y python-software-properties
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/ppa
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main" | sudo tee --append /etc/apt/sources.list
- echo "deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main" | sudo tee --append /etc/apt/sources.list
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -y g++-multilib libc6-dev-i386 lib32stdc++6 lib32z1-dev clang-3.5
- CHECKOUT_DIR=$PWD && cd .. && $CHECKOUT_DIR/tools/checkout-deps.sh && cd $CHECKOUT_DIR
script:
- mkdir build && cd build
- PATH="~/.local/bin:$PATH"
- CC=clang-3.5 CXX=clang-3.5 python ../configure.py --enable-optimize --sdks=episode1,tf2,l4d2,csgo,dota
- ambuild

View File

@ -118,7 +118,7 @@ if [ $? -eq 1 ]; then
python setup.py install
else
python setup.py build
echo "About to install AMBuild - press Ctrl+C to abort, otherwise enter your password for sudo."
sudo python setup.py install
echo "Installing AMBuild at the user level. Location can be: ~/.local/bin"
python setup.py install --user
fi
fi