mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 23:42:40 +02:00
Added travis-ci support.
This commit is contained in:
parent
11f1d5fbbd
commit
103a6c56e4
26
.travis.yml
Normal file
26
.travis.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
language: cpp
|
||||||
|
cache:
|
||||||
|
- apt
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
|
before_install:
|
||||||
|
# We need this line to have g++4.8 available in apt
|
||||||
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get update
|
||||||
|
- sudo apt-get install libgtest-dev
|
||||||
|
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
|
||||||
|
install:
|
||||||
|
- sudo apt-get install -qq gcc-4.8 g++-4.8
|
||||||
|
# We want to compile with g++ 4.8 when rather than the default g++
|
||||||
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
|
||||||
|
|
||||||
|
env:
|
||||||
|
- ACTION="ci/build_autotools.sh" PARAM="cpp11"
|
||||||
|
- ACTION="ci/build_autotools.sh" PARAM="cpp03"
|
||||||
|
- ACTION="ci/build_cmake.sh" PARAM="cpp11"
|
||||||
|
- ACTION="ci/build_cmake.sh" PARAM="cpp03"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- git clean -xdf && ${ACTION} ${PARAM}
|
@ -19,6 +19,8 @@ The source for msgpack-c is held at [msgpack-c](https://github.com/msgpack/msgpa
|
|||||||
|
|
||||||
To report an issue, use the [msgpack-c issue tracker](https://github.com/msgpack/msgpack-c/issues) at github.com.
|
To report an issue, use the [msgpack-c issue tracker](https://github.com/msgpack/msgpack-c/issues) at github.com.
|
||||||
|
|
||||||
|
## Version
|
||||||
|
0.6.0 [](https://travis-ci.org/msgpack/msgpack-c)
|
||||||
|
|
||||||
## Using Msgpack
|
## Using Msgpack
|
||||||
|
|
||||||
|
39
ci/build_autotools.sh
Executable file
39
ci/build_autotools.sh
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
./bootstrap
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $1 = "cpp11" ]
|
||||||
|
then
|
||||||
|
./configure CXXFLAGS="-std=c++11"
|
||||||
|
else
|
||||||
|
./configure
|
||||||
|
fi
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
make check
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
48
ci/build_cmake.sh
Executable file
48
ci/build_cmake.sh
Executable file
@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd build
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $1 = "cpp11" ]
|
||||||
|
then
|
||||||
|
cmake -DMSGPACK_CXX11=ON ..
|
||||||
|
else
|
||||||
|
cmake ..
|
||||||
|
fi
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
make test
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]
|
||||||
|
then
|
||||||
|
exit $ret
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user