diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2021-01-23 15:16:41 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-01-23 15:49:05 -0300 |
commit | 442fabb11a45896c32d170eac70d4f269bed7e46 (patch) | |
tree | 0035043cf407d87e54bed664ec0c37a44611db06 | |
parent | 7c6e1b013caec0602ca4796df3b1d7253a2dd258 (diff) | |
download | luafilesystem-442fabb11a45896c32d170eac70d4f269bed7e46.tar.gz luafilesystem-442fabb11a45896c32d170eac70d4f269bed7e46.tar.bz2 luafilesystem-442fabb11a45896c32d170eac70d4f269bed7e46.zip |
CI: add Mac build
-rw-r--r-- | .travis.yml | 37 |
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 @@ | |||
1 | language: c | 1 | language: generic |
2 | |||
3 | sudo: false | 2 | sudo: false |
4 | 3 | ||
5 | env: | 4 | jobs: |
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 | ||
11 | before_install: | 30 | before_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 | ||
21 | install: | 40 | install: |
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 | ||
24 | script: | 43 | script: |
25 | - lua -lluacov tests/test.lua | 44 | - lua -lluacov tests/test.lua |