Added libcsptr installation script

This commit is contained in:
Snaipe 2015-04-15 00:19:10 +02:00
parent 8bec0a7230
commit e2f3daa07b
3 changed files with 16 additions and 0 deletions

14
.ci/install-libcsptr.sh Executable file
View file

@ -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

View file

@ -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:

View file

@ -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</dev/null; ./configure CC=i686-w64-mingw32-gcc CFLAGS=\"-g -O0\" --enable-gcov"'