[CI] update travis with new interface (no sudo)

This commit is contained in:
Edouard DUPIN 2015-08-24 23:55:27 +02:00
parent 0db5f0c528
commit 82836ac045
2 changed files with 27 additions and 43 deletions

View File

@ -1,21 +1,34 @@
# language type:
language: language:
- cpp - cpp
- android
android: sudo: false
components:
- platform-tools
- tools
- build-tools-22.0.1
- android-14
- extra
# compilator system:
compiler: compiler:
- clang - clang
- gcc - gcc
os:
- linux
- osx
branches:
only:
- master
- dev
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
install:
- echo "BUILDER = $BUILDER"
- echo "BOARD = $BOARD"
- echo "CONF = $CONF"
- pip install --user lutin
env: env:
matrix: matrix:
- CONF=debug BOARD=Linux - CONF=debug BOARD=Linux
@ -30,13 +43,6 @@ env:
- compiler: clang - compiler: clang
env: BOARD=Android env: BOARD=Android
# build branch requested
branches:
only:
- master
- dev
# previous actions:
before_script: before_script:
- cd .. - cd ..
- mkdir bin - mkdir bin
@ -54,35 +60,11 @@ before_script:
- pwd - pwd
- ls -l - ls -l
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi - if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
- if [ "$CXX" == "g++" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi
#install Gcc to have lisstdc++ 4.9 & gcc 4.9
install:
- echo "BUILDER = $BUILDER"
- echo "BOARD = $BOARD"
- echo "CONF = $CONF"
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo pip install lutin
- if [ "$BOARD" == "Linux" ]; then sudo apt-get install -qq libstdc++-4.9-dev; fi
- if [ "$BOARD" == "Linux" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$BOARD" == "Linux" ]; then sudo rm /usr/bin/gcc /usr/bin/g++; fi
- if [ "$BOARD" == "Linux" ]; then sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc; fi
- if [ "$BOARD" == "Linux" ]; then sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++; fi
- if [ "$BOARD" == "Windows" ]; then sudo apt-get install -qq mingw32; fi
#- if [ "$BOARD" == "Windows" ]; then sudo apt-get install -qq mingw-w64-i686-dev; fi
#- if [ "$BOARD" == "Windows" ]; then sudo apt-get install -qq mingw-w64-x86-64-dev; fi
- if [ "$BOARD" == "Windows" ]; then sudo apt-get install -qq mingw-w64-dev; fi
#- if [ "$BOARD" == "Windows" ]; then sudo apt-get install -qq g++-mingw-w64-i686; fi
#- if [ "$BOARD" == "Windows" ]; then sudo apt-get install -qq g++-mingw-w64-x86-64; fi
# build sequence with Lutin :
script: script:
- lutin -C -P -t $BOARD -c $BUILDER -m $CONF -p edn - lutin -C -P -t $BOARD -c $BUILDER $COMPILATOR_OPTION -m $CONF -p edn
#send e-mail on compilation result:
notifications: notifications:
email: email:
- yui.heero@gmail.com - yui.heero@gmail.com

View File

@ -51,6 +51,8 @@ class MainApplication : public ewol::context::Application {
// TODO : remove this : Move if in the windows properties // TODO : remove this : Move if in the windows properties
_context.setSize(vec2(800, 600)); _context.setSize(vec2(800, 600));
_context.setTitle("edn");
// select internal data for font ... // select internal data for font ...
_context.getFontDefault().setUseExternal(true); _context.getFontDefault().setUseExternal(true);
#ifdef __TARGET_OS__Android #ifdef __TARGET_OS__Android