[CI] update build

This commit is contained in:
Edouard DUPIN 2016-10-24 22:25:37 +02:00
parent 71998543f4
commit 987dba6b49

View File

@ -1,6 +1,7 @@
language: cpp language: cpp
sudo: false sudo: required
dist: trusty
branches: branches:
only: only:
@ -14,9 +15,9 @@ addons:
packages: packages:
- g++-4.9 - g++-4.9
- expect - expect
#- binutils-mingw-w64-x86-64 # 64bit MinGW - binutils-mingw-w64-x86-64 # 64bit MinGW
#- gcc-mingw-w64-x86-64 - gcc-mingw-w64-x86-64
#- g++-mingw-w64-x86-64 - g++-mingw-w64-x86-64
matrix: matrix:
include: include:
@ -26,12 +27,12 @@ matrix:
- os: linux - os: linux
env: CONF=debug BUILDER=clang TARGET=Linux env: CONF=debug BUILDER=clang TARGET=Linux
compiler: clang compiler: clang
#- os: linux - os: linux
# env: CONF=release BUILDER=gcc TARGET=Windows TAG=Mingw env: CONF=release BUILDER=gcc TARGET=Windows TAG=Mingw
# compiler: x86_64-w64-mingw32-gcc compiler: x86_64-w64-mingw32-gcc
#- os: linux - os: linux
# env: CONF=release BUILDER=gcc TARGET=Android TAG=Android DISABLE_PACKAGE=-p env: CONF=release BUILDER=gcc TARGET=Android TAG=Android DISABLE_PACKAGE=-p
# compiler: gcc compiler: gcc
- os: osx - os: osx
env: CONF=release BUILDER=clang TARGET=MacOs TAG=MacOs env: CONF=release BUILDER=clang TARGET=MacOs TAG=MacOs
compiler: clang compiler: clang
@ -52,6 +53,9 @@ install:
before_script: before_script:
- cd .. - cd ..
- git clone https://github.com/atria-soft/elog.git -b $TRAVIS_BRANCH
- git clone https://github.com/atria-soft/ememory.git -b $TRAVIS_BRANCH
- git clone https://github.com/atria-soft/echrono.git -b $TRAVIS_BRANCH
- git clone https://github.com/atria-soft/etk.git -b $TRAVIS_BRANCH - git clone https://github.com/atria-soft/etk.git -b $TRAVIS_BRANCH
- git clone https://github.com/generic-library/gtest-lutin.git --recursive - git clone https://github.com/generic-library/gtest-lutin.git --recursive
- git clone https://github.com/generic-library/z-lutin.git --recursive - git clone https://github.com/generic-library/z-lutin.git --recursive
@ -70,11 +74,10 @@ after_script:
- if [ "$GCOV" != "" ]; then - if [ "$GCOV" != "" ]; then
./ci/warning_send.py --find-path ./out/Linux_x86_64/$CONF/build/$BUILDER/ejson/; ./ci/warning_send.py --find-path ./out/Linux_x86_64/$CONF/build/$BUILDER/ejson/;
fi fi
- if [ "$GCOV" == "" ]; then - lutin -w -j4 -C -P -t$TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF $GCOV $DISABLE_PACKAGE ejson-test?run:--elog-level=3 | tee out_test.txt
./out/Linux_x86_64/$CONF/staging/$BUILDER/ejson-test/ejson-test.app/bin/ejson-test --elog-level=3 | tee out_test.txt - if [ "$GCOV" != "" ]; then
else
./ci/test_send.py --file=out_test.txt; ./ci/test_send.py --file=out_test.txt;
lutin -C -P -t $TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF -p ejson-*?build?run ejson?gcov; lutin -C -P -t $TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF -p ejson?gcov;
./ci/coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/ejson/ejson_coverage.json; ./ci/coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/ejson/ejson_coverage.json;
fi fi