commit
400430804d
47
.travis.yml
47
.travis.yml
@ -5,8 +5,11 @@ compiler:
|
|||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- config=debug64 config_suffix=debug_x64_gmake
|
matrix:
|
||||||
- config=release64 config_suffix=release_x64_gmake
|
- config=debug64 config_suffix=debug_x64_gmake
|
||||||
|
- config=release64 config_suffix=release_x64_gmake
|
||||||
|
global:
|
||||||
|
secure: HAEPpA7IxUd+X4X5VcUpSxWf3hDRDNgNpKQrRSX/X/nS0/h5PAwES7fmM6WJAsoEmczCp3OOArzyOON+KLbISvJLnHvnexd+rtyVjU2zOOVTEgzJRdAPHwocqVx5FOxtlKgbDISE6dl3H5aUCycf962jfquhKosi11rbxwcscmc=
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository -y ppa:codegear/release
|
- sudo add-apt-repository -y ppa:codegear/release
|
||||||
@ -22,8 +25,44 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- make -C build/gmake -f test.make
|
- make -C build/gmake -f test.make
|
||||||
- make -C build/gmake -f example.make
|
- make -C build/gmake -f example.make
|
||||||
- cd bin
|
- cd bin
|
||||||
- ./unittest_${config_suffix}
|
- ./unittest_${config_suffix}
|
||||||
- valgrind --leak-check=full --error-exitcode=1 ./unittest_${config_suffix}
|
- valgrind --leak-check=full --error-exitcode=1 ./unittest_${config_suffix}
|
||||||
- ./perftest_${config_suffix}
|
- if [ "$config" = "release64" ]; then ./perftest_${config_suffix}; fi
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
# Build latest doxygen from source
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then cd /tmp; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then git clone https://github.com/doxygen/doxygen.git; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then cd doxygen; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then ./configure; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then make; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then make distclean; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then git pull; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then ./configure; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then make; fi
|
||||||
|
# - if [ "$config" = "release64" -a "$CC" = "clang" ]; then sudo make install; fi
|
||||||
|
|
||||||
|
# Install doxygen binary distribution
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then cd /tmp; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.7.linux.bin.tar.gz; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then tar -xvf doxygen-1.8.7.linux.bin.tar.gz; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then sudo install -m 755 doxygen-1.8.7/bin/doxygen /usr/bin; fi
|
||||||
|
|
||||||
|
# Run doxygen
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then cd "${TRAVIS_BUILD_DIR}"; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then doxygen build/Doxyfile; fi
|
||||||
|
|
||||||
|
# Push to Github Pages
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git config --global user.name "${GIT_NAME}"; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git config --global user.email ${GIT_EMAIL}; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then mkdir build/doc; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then cd build/doc; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git clone https://github.com/miloyip/rapidjson; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then cd rapidjson; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git checkout gh-pages; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then cp -r ../../../doc/html/* .; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git add --all; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git commit -m "Automatic doxygen build"; fi
|
||||||
|
- if [ "$config" = "release64" -a "$CC" = "clang" ]; then git push https://${GH_TOKEN}@github.com/miloyip/rapidjson gh-pages; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user