From abc84f10d4ab09bc4caa0d64feda463416915ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Fri, 11 Apr 2014 17:06:25 +0200 Subject: [PATCH] Add basic travis-ci integration This PR adds the basic integration for [Travis CI][tci]. The config file `.travis.yml` tells the server to setup the basic build system, and run `compile_test.py`. If not all examples and tests could be built, then the Travis CI integration adds a warning to "merge" button on the bottom of the Github page. Of course this integration makes little sense until #1049 is resolved, because new bugs and old bugs cannot be told apart. Also (of course) only because everything still builds, a PR still can intruduce a multitude of runtime errors. This integrations is meant to work additionally to our Jenkings. Users can activate the test in their own RIOT forks to run the test before opening a PR to master. [tci]: https://travis-ci.org/ --- .travis.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..0137bbc5b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: c + +before_install: + - sudo apt-get update + + - sudo apt-get install emdebian-archive-keyring + - echo 'deb http://www.emdebian.org/debian wheezy main' | sudo tee /etc/apt/sources.list.d/emdebian.list > /dev/null + + - echo 'deb http://us.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse' | sudo tee /etc/apt/sources.list.d/trusty.list > /dev/null + - echo 'deb http://us.archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/trusty.list > /dev/null + - echo 'deb http://us.archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/trusty.list > /dev/null + - echo 'deb http://us.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/trusty.list > /dev/null + - sudo apt-get update + + - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded + - sudo apt-get update + +install: + - sudo apt-get install build-essential + - sudo apt-get install gcc-multilib + - sudo apt-get install gcc-arm-none-eabi + - sudo apt-get install gcc-msp430 + +script: + - ./dist/tools/compile_test/compile_test.py + +notifications: + email: false