Skip to content

Instantly share code, notes, and snippets.

@winterz
Last active May 25, 2017 01:10
Show Gist options
  • Save winterz/10cc2741d466cbd8ff21 to your computer and use it in GitHub Desktop.
Save winterz/10cc2741d466cbd8ff21 to your computer and use it in GitHub Desktop.
travis CI setup script
#/bin/sh -f
# things to do for travis-ci in the before_install section
if ( test "`uname -s`" = "Darwin" )
then
#cmake v2.8.12 is installed on the Mac workers now
#brew update
#brew install cmake
echo
else
#install a newer cmake since at this time Travis only has version 2.8.7
echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
sudo apt-get update -qq
sudo apt-get install cmake
fi
@gismo141
Copy link

Remove: echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
Add: sudo add-apt-repository --yes ppa:kalakris/cmake

@gabyx
Copy link

gabyx commented Nov 24, 2015

cool thanks :-) for the snippet

@dpriver
Copy link

dpriver commented Apr 26, 2016

Thank-you, it solves my problem with object libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment