Skip to content

Commit d2a2242

Browse files
committed
Fix .travis.yml to install cmake
1 parent a3b2665 commit d2a2242

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ before_install:
99
- wget -P .travis-tmp/astyle-2.03/ http://heanet.dl.sourceforge.net/project/astyle/astyle/astyle%202.03/astyle_2.03_linux.tar.gz
1010
- tar xvzf .travis-tmp/astyle-2.03/astyle_2.03_linux.tar.gz -C .travis-tmp/astyle-2.03/
1111
# build astyle-2.03
12-
- pushd .travis-tmp/astyle-2.03/astyle/build/gcc && make && export PATH=$PATH:`pwd`/bin && popd
12+
- pushd .travis-tmp/astyle-2.03/astyle/build/gcc && make && export PATH=`pwd`/bin:$PATH && popd
13+
# cmake-3.2.2
14+
- mkdir -p .travis-tmp/cmake-3.2.2
15+
- wget -P .travis-tmp/cmake-3.2.2/ http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-x86_64.sh
16+
- bash .travis-tmp/cmake-3.2.2/cmake-3.2.2-Linux-x86_64.sh --exclude-subdir --prefix=.travis-tmp/cmake-3.2.2 --skip-license
17+
- export PATH=`pwd`/.travis-tmp/cmake-3.2.2/bin:$PATH
1318
script:
14-
- cmake -Dtest=ON && make && ctest
19+
- cmake -Dtest=ON && make && ctest -V
1520
- ./script/travis_format_checcker.sh

0 commit comments

Comments
 (0)