forked from vapourismo/luwra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (32 loc) · 801 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: cpp
compiler:
- clang
- gcc
env:
# Lua versions to test against
- LUA_VERSION=5.3.2
- LUA_VERSION=5.2.4
- LUA_VERSION=5.1.5
install:
# Select compiler
- if [[ "$CXX" = "g++" ]]; then export CXX="g++-5"; fi
- if [[ "$CXX" = "clang++" ]]; then export CXX="clang++-3.7"; fi
# Build Lua
- wget "http://www.lua.org/ftp/lua-$LUA_VERSION.tar.gz"
- tar xvfz "lua-$LUA_VERSION.tar.gz"
- pushd "lua-$LUA_VERSION/src"
- make LUA_A=liblua-custom.a linux
- export "LUA_SOURCE_PATH=$(pwd)"
- popd
script:
- make "LUA_LIBDIR=$LUA_SOURCE_PATH" "LUA_INCDIR=$LUA_SOURCE_PATH" LUA_LIBNAME=lua-custom all
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- clang-3.7
- g++-5
- make
- wget