From fccff0329e779cf587af11a8e4c3fcb2889b8e9e Mon Sep 17 00:00:00 2001 From: bakpakin Date: Thu, 27 Aug 2015 13:47:28 -0400 Subject: [PATCH] Add travis to tiny-ecs. --- .travis.yml | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f23224d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +language: erlang + +env: + global: + - LUAROCKS_BASE=luarocks-2.2.2 + matrix: + - LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1 + - LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2 + - LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0 + +before_install: + - if [ $LUA = "luajit" ]; then + sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y; + sudo apt-get install lua5.1; + sudo apt-get install liblua5.1-dev; + fi + - sudo apt-get install $LUA + - sudo apt-get install $LUA_DEV + - lua$LUA_SFX -v + # Install a recent luarocks release + - wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz + - tar zxvpf $LUAROCKS_BASE.tar.gz + - cd $LUAROCKS_BASE + - ./configure + --lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR" + - sudo make + - sudo make install + - cd $TRAVIS_BUILD_DIR + +install: + - sudo -E luarocks install busted + +script: + - sudo -E busted -v + +notifications: + email: + on_success: change + on_failure: always diff --git a/README.md b/README.md index 6441225..159023e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # tiny-ecs # +[![Build Status](https://travis-ci.org/bakpakin/tiny-ecs.png?branch=master)](https://travis-ci.org/bakpakin/tiny-ecs) + [![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE) Tiny-ecs is an Entity Component System for lua that's simple, flexible, and useful.