mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-18 20:28:17 +01:00
Added travis-ci support.
This commit is contained in:
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}
|
||||
Reference in New Issue
Block a user