File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh -ex
2
2
3
- if [ " $( uname) " = ' Darwin' ]; then
4
- URL=https://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz
5
- CMAKE=/tmp/CMake.app/Contents/bin/cmake
6
- CTEST=/tmp/CMake.app/Contents/bin/ctest
7
- else
8
- URL=https://cmake.org/files/v3.4/cmake-3.4.3-Linux-x86_64.tar.gz
9
- CMAKE=/tmp/bin/cmake
10
- CTEST=/tmp/bin/ctest
11
- fi
12
- curl -sS $URL | tar xz -C /tmp --strip 1
13
-
14
3
if [ -n " $GCC " ]; then
15
4
export CC=" gcc-$GCC "
16
5
export CXX=" g++-$GCC "
28
17
BUILD_TYPE=" Release"
29
18
fi
30
19
31
- $CMAKE -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
32
- $CMAKE --build .
33
- $CTEST --output-on-failure .
20
+ cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
21
+ cmake --build .
22
+ ctest --output-on-failure .
Original file line number Diff line number Diff line change 1
1
#! /bin/sh -eux
2
2
3
- curl https://cmake.org/files/v3.4/cmake-3.4.0-Linux-x86_64.tar.gz | tar xz -C /tmp --strip 1
4
-
5
- /tmp/bin/cmake -DCOVERAGE=true .
3
+ cmake -DCOVERAGE=true .
6
4
make
7
5
make test
8
6
You can’t perform that action at this time.
0 commit comments