base: applies required branch list to travis
[luajson.git] / .travis.yml
blob763faab8afb0f0bb175a4614d56348a3e6036ac9
1 language: erlang
3 branches:
4     only:
5         - master
6         - next
7         - 1.2.x
8         - 1.1.x
9         - 1.0.x
11 env:
12     global:
13         - LUAROCKS_BASE=luarocks-2.2.0
14     matrix:
15         - LPEG=0.7-3 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
16         - LPEG=0.7-3 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
17         - LPEG=0.8.1-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
18         - LPEG=0.8.1-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
19         - LPEG=0.9-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
20         - LPEG=0.9-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
21         - LPEG=0.10.2-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
22         - LPEG=0.10.2-1 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
23         - LPEG=0.10.2-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
24         - LPEG=0.12-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
25         - LPEG=0.12-1 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
26         - LPEG=0.12-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
28 branches:
29     only:
30         - master
32 before_install:
33     - if [ $LUA = "luajit" ]; then
34       sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y;
35       fi
36     - sudo apt-get install $LUA
37     - sudo apt-get install $LUA_DEV
38     - lua$LUA_SFX -v
39     # Install a recent luarocks release
40     - wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
41     - tar zxvpf $LUAROCKS_BASE.tar.gz
42     - cd $LUAROCKS_BASE
43     - ./configure
44       --lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
45     - sudo make
46     - sudo make build
47     - sudo make install
48     - cd $TRAVIS_BUILD_DIR
49     - sudo -E luarocks install lunit
50     - sudo -E luarocks install luafilesystem
51     - sudo -E luarocks install lpeg $LPEG
53 script:
54     - make LUA_BIN=$LUA check
56 notifications:
57     email:
58         on_success: change
59         on_failure: always