File: install_catch2.sh

package info (click to toggle)
paho.mqtt.cpp 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,672 kB
  • sloc: cpp: 13,068; ansic: 113; sh: 55; makefile: 22
file content (22 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#
# install_catch2.sh
#
# Travis CI build/test helper script for the Eclipse Paho C++ library.
# This installs Catch2 into the VM.
#

set -ex

VERSION=2.9.1

# Install Catch2 from sources
wget https://github.com/catchorg/Catch2/archive/v${VERSION}.tar.gz
tar -xf v${VERSION}.tar.gz
cd Catch2-${VERSION}/
cmake -Bbuild -H. -DBUILD_TESTING=OFF

# CMake bin is installed in a strange place where
# sudo can not find by default.
sudo env "PATH=$PATH" cmake --build build/ --target install