aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2022-06-24 10:32:25 -0300
committerHisham Muhammad <hisham@gobolinux.org>2022-06-24 12:10:16 -0300
commitf77f24850b1f7f12e51e3b3bf40d141eddc10a10 (patch)
tree4ee315e58f771b77f7b0822af9b4cc30ae08adcd
parent211c2a5d897db328a7776ddc11111a2051d5b7f3 (diff)
downloadluafilesystem-f77f24850b1f7f12e51e3b3bf40d141eddc10a10.tar.gz
luafilesystem-f77f24850b1f7f12e51e3b3bf40d141eddc10a10.tar.bz2
luafilesystem-f77f24850b1f7f12e51e3b3bf40d141eddc10a10.zip
switch to Github Actions
-rw-r--r--.github/workflows/ci.yml48
-rw-r--r--.travis.yml34
-rw-r--r--README.md2
3 files changed, 49 insertions, 35 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..877c6dd
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,48 @@
1name: ci
2
3on: [push, pull_request]
4
5jobs:
6 TestMatrix:
7 strategy:
8 matrix:
9 lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"]
10 os: ["ubuntu-latest"]
11 libflag: ["-shared --coverage"]
12 include:
13 - os: "macos-latest"
14 lua-version: "5.4"
15 libflag: "-bundle -undefined dynamic_lookup -all_load --coverage"
16 runs-on: ${{ matrix.os }}
17
18 steps:
19 - uses: actions/checkout@master
20
21 - uses: leafo/gh-actions-lua@v8.0.0
22 with:
23 luaVersion: ${{ matrix.lua-version }}
24
25 - uses: leafo/gh-actions-luarocks@master
26
27 - name: Prep
28 run: |
29 pip install --user cpp-coveralls
30 luarocks install lua-path
31 luarocks install dkjson
32 luarocks install luacov
33 # install luacov-coveralls, but avoid installing luafilesystem
34 luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
35
36 - name: Build
37 run: |
38 luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="${{ matrix.libflag }}"
39
40 - name: Test
41 run: |
42 lua -lluacov tests/test.lua
43
44 - name: Coverage
45 run: |
46 export PATH="/Users/runner/Library/Python/2.7/bin:$PATH"
47 coveralls -b . -i src --dump c.report.json
48 luacov-coveralls -j c.report.json -v -t ${{ secrets.GITHUB_TOKEN }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 618e48e..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
1language: c
2
3sudo: false
4
5env:
6 - LUA="lua 5.1"
7 - LUA="lua 5.2"
8 - LUA="lua 5.3"
9 - LUA="luajit 2.1"
10
11before_install:
12 - pip install --user cpp-coveralls hererocks
13 - hererocks env --$LUA --luarocks latest
14 - export PATH="$PWD/env/bin:$PATH"
15 - luarocks install lua-path
16 - luarocks install dkjson
17 - luarocks install luacov
18 # install luacov-coveralls, but avoid installing luafilesystem
19 - luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
20
21install:
22 - luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
23
24script:
25 - lua -lluacov tests/test.lua
26
27after_success:
28 - coveralls -b . -i src --dump c.report.json
29 - luacov-coveralls -j c.report.json -v
30
31notifications:
32 email:
33 on_success: change
34 on_failure: always
diff --git a/README.md b/README.md
index d0fd3f2..07b7438 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
1[![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE) 1[![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE)
2[![Build Status](https://travis-ci.org/keplerproject/luafilesystem.svg?branch=master)](https://travis-ci.org/keplerproject/luafilesystem) 2[![Build Status](https://github.com/keplerproject/luafilesystem/actions/workflows/ci.yml/badge.svg)](https://github.com/keplerproject/luafilesystem/actions)
3[![Build status](https://ci.appveyor.com/api/projects/status/y04s4ms7u16trw8e?svg=true)](https://ci.appveyor.com/project/ignacio/luafilesystem) 3[![Build status](https://ci.appveyor.com/api/projects/status/y04s4ms7u16trw8e?svg=true)](https://ci.appveyor.com/project/ignacio/luafilesystem)
4[![Coverage Status](https://coveralls.io/repos/keplerproject/luafilesystem/badge.png)](https://coveralls.io/r/keplerproject/luafilesystem) 4[![Coverage Status](https://coveralls.io/repos/keplerproject/luafilesystem/badge.png)](https://coveralls.io/r/keplerproject/luafilesystem)
5 5