diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a328e68 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,85 @@ +language: cpp + +sudo: required +dist: trusty + +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/elog.git -b $TRAVIS_BRANCH + - git clone https://github.com/atria-soft/etk.git -b $TRAVIS_BRANCH + - git clone https://github.com/atria-soft/ememory.git -b $TRAVIS_BRANCH + - git clone https://github.com/generic-library/gtest-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 echrono; 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/echrono/; + fi + #- lutin -w -j4 -C -P -t$TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF $GCOV $DISABLE_PACKAGE echrono-test?run:--elog-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 echrono?gcov; + # ./ci/coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/echrono/echrono_coverage.json; + # fi + +notifications: + email: + - yui.heero@gmail.com + diff --git a/README.md b/README.md index d36cfed..465118f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,78 @@ -# echrono -[APACHE v2.0] Virualize the std::chono interface to permit to have a slow virtual clock +e-chrono +======== + +`e-chrono` Virualize the std::chono interface to permit to have a slow virtual clock + +Release (master) +---------------- + +[![Build Status](https://travis-ci.org/atria-soft/echrono.svg?branch=master)](https://travis-ci.org/atria-soft/echrono) +[![Coverage Status](http://atria-soft.com/ci/coverage/atria-soft/echrono.svg?branch=master)](http://atria-soft.com/ci/atria-soft/echrono) +[![Test Status](http://atria-soft.com/ci/test/atria-soft/echrono.svg?branch=master)](http://atria-soft.com/ci/atria-soft/echrono) +[![Warning Status](http://atria-soft.com/ci/warning/atria-soft/echrono.svg?branch=master)](http://atria-soft.com/ci/atria-soft/echrono) + +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=master&tag=Linux)](http://atria-soft.com/ci/atria-soft/echrono) +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=master&tag=MacOs)](http://atria-soft.com/ci/atria-soft/echrono) +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=master&tag=Mingw)](http://atria-soft.com/ci/atria-soft/echrono) + +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=master&tag=Android)](http://atria-soft.com/ci/atria-soft/echrono) +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=master&tag=IOs)](http://atria-soft.com/ci/atria-soft/echrono) + +Developement (dev) +------------------ + +[![Build Status](https://travis-ci.org/atria-soft/echrono.svg?branch=dev)](https://travis-ci.org/atria-soft/echrono) +[![Coverage Status](http://atria-soft.com/ci/coverage/atria-soft/echrono.svg?branch=dev)](http://atria-soft.com/ci/atria-soft/echrono) +[![Test Status](http://atria-soft.com/ci/test/atria-soft/echrono.svg?branch=dev)](http://atria-soft.com/ci/atria-soft/echrono) +[![Warning Status](http://atria-soft.com/ci/warning/atria-soft/echrono.svg?branch=dev)](http://atria-soft.com/ci/atria-soft/echrono) + +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=dev&tag=Linux)](http://atria-soft.com/ci/atria-soft/echrono) +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=dev&tag=MacOs)](http://atria-soft.com/ci/atria-soft/echrono) +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=dev&tag=Mingw)](http://atria-soft.com/ci/atria-soft/echrono) + +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=dev&tag=Android)](http://atria-soft.com/ci/atria-soft/echrono) +[![Build Status](http://atria-soft.com/ci/build/atria-soft/echrono.svg?branch=dev&tag=IOs)](http://atria-soft.com/ci/atria-soft/echrono) + + +Instructions +============ + +download Build system: +---------------------- + + sudo pip install lutin + sudo pip install pillow + +download the software: +---------------------- + + mkdir WORKING_DIRECTORY + cd WORKING_DIRECTORY + git clone https://github.com/atria-soft/elog.git + git clone https://github.com/atria-soft/etk.git + git clone https://github.com/atria-soft/echrono.git + git clone https://github.com/generic-library/gtest-lutin.git --recursive + +Compile software: +----------------- + + cd WORKING_DIRECTORY + lutin -C -P echrono + + +License (APACHE v2.0) +===================== +Copyright echrono Edouard DUPIN + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +