aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2021-01-23 15:16:41 -0300
committerHisham Muhammad <hisham@gobolinux.org>2021-01-23 15:49:05 -0300
commit442fabb11a45896c32d170eac70d4f269bed7e46 (patch)
tree0035043cf407d87e54bed664ec0c37a44611db06
parent7c6e1b013caec0602ca4796df3b1d7253a2dd258 (diff)
downloadluafilesystem-442fabb11a45896c32d170eac70d4f269bed7e46.tar.gz
luafilesystem-442fabb11a45896c32d170eac70d4f269bed7e46.tar.bz2
luafilesystem-442fabb11a45896c32d170eac70d4f269bed7e46.zip
CI: add Mac build
-rw-r--r--.travis.yml37
1 files changed, 28 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index 618e48e..723d7e6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,15 +1,34 @@
1language: c 1language: generic
2
3sudo: false 2sudo: false
4 3
5env: 4jobs:
6 - LUA="lua 5.1" 5 - os: linux
7 - LUA="lua 5.2" 6 env:
8 - LUA="lua 5.3" 7 - LUA="lua 5.1"
9 - LUA="luajit 2.1" 8 LIBFLAG="-shared --coverage"
9 - os: linux
10 env:
11 - LUA="lua 5.2"
12 LIBFLAG="-shared --coverage"
13 - os: linux
14 env:
15 - LUA="lua 5.3"
16 LIBFLAG="-shared --coverage"
17 - os: linux
18 env:
19 - LUA="lua 5.4"
20 LIBFLAG="-shared --coverage"
21 - os: linux
22 env:
23 - LUA="luajit 2.1"
24 LIBFLAG="-shared --coverage"
25 - os: osx
26 env:
27 - LUA="lua 5.1"
28 LIBFLAG="-bundle -undefined dynamic_lookup -all_load --coverage"
10 29
11before_install: 30before_install:
12 - pip install --user cpp-coveralls hererocks 31 - pip install cpp-coveralls hererocks
13 - hererocks env --$LUA --luarocks latest 32 - hererocks env --$LUA --luarocks latest
14 - export PATH="$PWD/env/bin:$PATH" 33 - export PATH="$PWD/env/bin:$PATH"
15 - luarocks install lua-path 34 - luarocks install lua-path
@@ -19,7 +38,7 @@ before_install:
19 - luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none 38 - luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
20 39
21install: 40install:
22 - luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" 41 - luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="$LIBFLAG"
23 42
24script: 43script:
25 - lua -lluacov tests/test.lua 44 - lua -lluacov tests/test.lua