Skip to content

Commit

Permalink
Install newer CMake on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Mar 22, 2017
1 parent 72db56f commit 9913874
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ rust:
cache:
apt: true

env:
global:
- PATH="$HOME/bin:$PATH"
- CMAKE_VERSION_PREFIX=3.7
- CMAKE_VERSION_FULL=3.7.2

addons:
apt:
packages:
Expand All @@ -27,6 +33,15 @@ before_install:
- openssl aes-256-cbc -K $encrypted_2620d498bbb7_key -iv $encrypted_2620d498bbb7_iv -in gh_rsa.enc -out gh_rsa -d

install:
- mkdir -p /tmp/tools
- pushd /tmp/tools
- if [[ ! -f "cmake-$CMAKE_VERSION_FULL-Linux-x86_64.sh" ]]; then
curl -SOL "https://cmake.org/files/v$CMAKE_VERSION_PREFIX/cmake-$CMAKE_VERSION_FULL-Linux-x86_64.sh";
chmod +x "cmake-$CMAKE_VERSION_FULL-Linux-x86_64.sh";
fi
- ./"cmake-$CMAKE_VERSION_FULL-Linux-x86_64.sh" --prefix="$HOME" --exclude-subdir --skip-license
- popd
-
- git clone https://github.com/nabijaczleweli/BearLibTerminal ~/BearLibTerminal && cd ~/BearLibTerminal/Build
- cmake -G"Unix Makefiles" .. && make BearLibTerminal
- mkdir ~/lib/ && cp ../Output/Linux64/libBearLibTerminal.so ~/lib/ && cd $TRAVIS_BUILD_DIR
Expand Down

0 comments on commit 9913874

Please sign in to comment.