From e2f3daa07b3306108c28c89ff5067c252829e6ac Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 15 Apr 2015 00:19:10 +0200 Subject: [PATCH] Added libcsptr installation script --- .ci/install-libcsptr.sh | 14 ++++++++++++++ .travis.yml | 1 + appveyor.yml | 1 + 3 files changed, 16 insertions(+) create mode 100755 .ci/install-libcsptr.sh diff --git a/.ci/install-libcsptr.sh b/.ci/install-libcsptr.sh new file mode 100755 index 0000000..fd0f471 --- /dev/null +++ b/.ci/install-libcsptr.sh @@ -0,0 +1,14 @@ +#!/bin/bash +repo="https://github.com/Snaipe/libcsptr.git" +tag="v2.0.1" + +mkdir dependencies +git clone --branch ${tag} --depth 1 ${repo} dependencies/libcsptr && +( + cd dependencies/libcsptr && + ./autogen.sh && + ./configure --prefix=/usr && + make && + sudo make install +) +rm -Rf dependencies diff --git a/.travis.yml b/.travis.yml index 55f5f64..43565d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ before_install: - sudo apt-get -qq install -y check gcc-4.9 gettext autopoint - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 - sudo pip install cpp-coveralls + - .ci/install-libcsptr.sh script: - ./autogen.sh && ./configure --enable-gcov CFLAGS="-g -O0" && make && make check after_success: diff --git a/appveyor.yml b/appveyor.yml index 76e605f..55db7d9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -53,6 +53,7 @@ configuration: Release install: - 'set GCOV_PREFIX=%APPVEYOR_BUILD_FOLDER%' + - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; .ci/install-libcsptr.sh"' - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; ./autogen.sh'" - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0