[CI] update config (build windows and android

This commit is contained in:
Edouard DUPIN 2015-10-29 21:04:56 +01:00
parent 04d60a7200
commit d84f9f7df8

View File

@ -2,10 +2,6 @@ language: cpp
sudo: false sudo: false
os:
- linux
- osx
branches: branches:
only: only:
- master - master
@ -17,34 +13,45 @@ addons:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- g++-4.9 - g++-4.9
- expect
#- binutils-mingw-w64-x86-64 # 64bit MinGW
#- gcc-mingw-w64-x86-64
#- g++-mingw-w64-x86-64
matrix: matrix:
include: include:
- os: linux - os: linux
env: CONF=debug BUILDER=gcc GCOV=--gcov TARGET=-tLinux env: CONF=release BUILDER=gcc TARGET=Linux TAG=Linux COMPILATOR_OPTION="--compilator-version=4.9"
compiler: gcc
- os: linux - os: linux
env: CONF=release BUILDER=gcc TARGET=-tLinux TAG=Linux env: CONF=debug BUILDER=clang TARGET=Linux
- os: linux compiler: clang
env: CONF=release BUILDER=clang TARGET=-tLinux
#- os: linux #- os: linux
# env: CONF=release BUILDER=gcc TARGET=-tWindows TAG=Mingw # env: CONF=release BUILDER=gcc TARGET=Windows TAG=Mingw
- os: osx # compiler: x86_64-w64-mingw32-gcc
env: CONF=release BUILDER=clang TARGET=-tMacOs TAG=MacOs
- os: osx
env: CONF=release BUILDER=clang TARGET=-tIOs TAG=IOs
exclude:
- os: linux - os: linux
env: CONF=release BUILDER=gcc TARGET=Android TAG=Android DISABLE_PACKAGE=-p
compiler: gcc
- os: osx - os: osx
env: CONF=release BUILDER=clang TARGET=MacOs TAG=MacOs
compiler: clang
- os: osx
env: CONF=release BUILDER=clang TARGET=IOs TAG=IOs
compiler: clang
install: install:
- cd ..
- pip install --user lutin - pip install --user lutin
- if [ "$TAG" == "Android" ]; then
git clone --depth 1 --branch master https://github.com/HeeroYui/android-download-tool;
./android-download-tool/dl-android.sh;
fi
- git clone --depth 1 --branch master https://github.com/atria-soft/ci.git
- cd -
before_script: before_script:
- cd .. - cd ..
- wget http://atria-soft.com/ci/coverage_send.py
- wget http://atria-soft.com/ci/test_send.py
- wget http://atria-soft.com/ci/warning_send.py
- wget http://atria-soft.com/ci/build_send.py
- mkdir bin - mkdir bin
- curl https://storage.googleapis.com/git-repo-downloads/repo > bin/repo - curl https://storage.googleapis.com/git-repo-downloads/repo > bin/repo
- chmod a+x bin/repo - chmod a+x bin/repo
@ -54,35 +61,30 @@ before_script:
- git config --global core.editor "vi" - git config --global core.editor "vi"
- mkdir WORKING_DIRECTORY - mkdir WORKING_DIRECTORY
- cd WORKING_DIRECTORY - cd WORKING_DIRECTORY
- ../bin/repo init -u https://github.com/atria-soft/manifest.git - ../bin/repo init -u https://github.com/atria-soft/manifest.git --depth=10
- ../bin/repo sync -j8 - ../bin/repo sync -j8
- rm -rf atria-soft/ewol - rm -rf atria-soft/ewol
- cd .. - cd ..
- pwd - pwd
- ls -l - ls -l
- if [ "$BUILDER" == "gcc" ]; then
COMPILATOR_OPTION="--compilator-version=4.9";
else
COMPILATOR_OPTION="";
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
export PATH=$PATH:/Users/travis/Library/Python/2.7/bin/; export PATH=$PATH:/Users/travis/Library/Python/2.7/bin/;
fi fi
- python ./build_send.py --tag=$TAG --status=START; - ./ci/build_send.py --tag=$TAG --status=START;
script: script:
- lutin -w -j4 -C -P $TARGET -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV ewol-test 0XX_customwidget 001_HelloWord; STATUS=$? - lutin -w -j4 -C -P -t$TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF $GCOV $DISABLE_PACKAGE ewol-test 0XX_customwidget 001_HelloWord; STATUS=$?
- python ./build_send.py --tag=$TAG --status="$STATUS"; - ./ci/build_send.py --tag=$TAG --status="$STATUS";
after_script: after_script:
- if [ "$GCOV" != "" ]; then - if [ "$GCOV" != "" ]; then
python ./warning_send.py --find-path ./out/Linux_x86_64/$CONF/build/$BUILDER/ewol/; ./ci/warning_send.py --find-path ./out/Linux_x86_64/$CONF/build/$BUILDER/ewol/;
fi fi
- ./out/Linux_x86_64/$CONF/staging/$BUILDER/ewol-test/ewol-test.app/bin/ewol-test -l6 | tee out_test.txt - ./out/Linux_x86_64/$CONF/staging/$BUILDER/ewol-test/ewol-test.app/bin/ewol-test -l6 | tee out_test.txt
- if [ "$GCOV" != "" ]; then - if [ "$GCOV" != "" ]; then
python ./test_send.py --file=out_test.txt; ./ci/test_send.py --file=out_test.txt;
lutin -C -P $TARGET -c $BUILDER $COMPILATOR_OPTION -m $CONF -p ewol?gcov; lutin -C -P $TARGET -c $BUILDER $COMPILATOR_OPTION -m $CONF -p ewol?gcov;
python ./coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/ewol/ewol_coverage.json; ./ci/coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/ewol/ewol_coverage.json;
fi fi
notifications: notifications: