From b3fd37c50cb2f5b5903add542a21f71d7f444c62 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 23 Oct 2016 23:02:32 +0200 Subject: [PATCH] [DEV] basic commit --- .travis.yml | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 +++ 2 files changed, 91 insertions(+) create mode 100644 .travis.yml create mode 100644 README.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0979900 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,87 @@ +language: cpp + +sudo: false + +branches: + only: + - master + - dev + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + - expect + #- binutils-mingw-w64-x86-64 # 64bit MinGW + #- gcc-mingw-w64-x86-64 + #- g++-mingw-w64-x86-64 + +matrix: + include: + - os: linux + env: CONF=release BUILDER=gcc TARGET=Linux TAG=Linux COMPILATOR_OPTION="--compilator-version=4.9" GCOV=--gcov + compiler: gcc + - os: linux + env: CONF=debug BUILDER=clang TARGET=Linux + compiler: clang + #- os: linux + # env: CONF=release BUILDER=gcc TARGET=Windows TAG=Mingw + # compiler: x86_64-w64-mingw32-gcc + #- os: linux + # env: CONF=release BUILDER=gcc TARGET=Android TAG=Android DISABLE_PACKAGE=-p + # compiler: gcc + - 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: + - cd .. + - 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: + - cd .. + - git clone https://github.com/atria-soft/etk.git -b $TRAVIS_BRANCH + - git clone https://github.com/atria-soft/esvg.git -b $TRAVIS_BRANCH + - git clone https://github.com/atria-soft/exml.git -b $TRAVIS_BRANCH + - git clone https://github.com/generic-library/gtest-lutin.git --recursive + - git clone https://github.com/generic-library/png-lutin.git --recursive + - git clone https://github.com/generic-library/edtaa3-lutin.git --recursive + - git clone https://github.com/generic-library/z-lutin.git --recursive + - pwd + - ls -l + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then + export PATH=$PATH:/Users/travis/Library/Python/2.7/bin/; + fi + - ./ci/build_send.py --tag=$TAG --status=START; + +script: + - lutin -w -j4 -C -P -t$TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF $GCOV $DISABLE_PACKAGE egami-test; STATUS=$? + - ./ci/build_send.py --tag=$TAG --status="$STATUS"; + +after_script: + - if [ "$GCOV" != "" ]; then + ./ci/warning_send.py --find-path ./out/Linux_x86_64/$CONF/build/$BUILDER/egami/; + fi + - ./out/Linux_x86_64/$CONF/staging/$BUILDER/egami-test/egami-test.app/bin/egami-test --etk-log-level=3 | tee out_test.txt + - if [ "$GCOV" != "" ]; then + ./ci/test_send.py --file=out_test.txt; + lutin -C -P -t $TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF -p egami?gcov; + ./ci/coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/egami/egami_coverage.json; + fi + +notifications: + email: + - yui.heero@gmail.com + diff --git a/README.md b/README.md new file mode 100644 index 0000000..941dcf9 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +------------------------------ + +Nothing else ... +