From a1e416cddcf7a58456b0558af8523d1c01abf686 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 17 Jun 2015 21:25:57 +0200 Subject: [PATCH] [DEV] update travis file --- .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 50 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..039c4d9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,48 @@ +# language type: +language: cpp + +# compilator system: +compiler: + - clang + - gcc + +os: + - linux + - osx + +# previous actions: +before_script: + - cd .. + - git clone https://github.com/atria-soft/etk.git + - git clone https://github.com/atria-soft/esvg.git + - git clone https://github.com/atria-soft/exml.git + - git clone https://github.com/atria-soft/libagg.git + - 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 + - pwd + - ls -l + - if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi + +#install Gcc to have lisstdc++ 4.9 & gcc 4.9 +install: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo apt-get update -qq + - sudo apt-get install -qq g++-4.9 + - sudo apt-get install -qq libstdc++-4.9-dev + - sudo rm /usr/bin/gcc /usr/bin/g++ + - sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc + - sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++ + - sudo pip install lutin + - sudo pip install pillow + +# build sequence with Lutin : +script: + - lutin -C -P -c$BUILDER -mdebug -p egami +# - ./out/Linux_x86_64/debug/staging/$BUILDER/egami-test/usr/bin/egami-test -l6 + +#send e-mail on compilation result: +notifications: + email: + - yui.heero@gmail.com + diff --git a/README.md b/README.md index 9538883..c24a6f1 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ egami `egami` is a simple wrapper to decode image file in etk image format. +[![Build Status](https://travis-ci.org/atria-soft/egami.svg?branch=master)](https://travis-ci.org/atria-soft/egami) + Instructions ============