diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-06-24 10:32:25 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-06-24 12:10:16 -0300 |
commit | f77f24850b1f7f12e51e3b3bf40d141eddc10a10 (patch) | |
tree | 4ee315e58f771b77f7b0822af9b4cc30ae08adcd | |
parent | 211c2a5d897db328a7776ddc11111a2051d5b7f3 (diff) | |
download | luafilesystem-f77f24850b1f7f12e51e3b3bf40d141eddc10a10.tar.gz luafilesystem-f77f24850b1f7f12e51e3b3bf40d141eddc10a10.tar.bz2 luafilesystem-f77f24850b1f7f12e51e3b3bf40d141eddc10a10.zip |
switch to Github Actions
-rw-r--r-- | .github/workflows/ci.yml | 48 | ||||
-rw-r--r-- | .travis.yml | 34 | ||||
-rw-r--r-- | README.md | 2 |
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 @@ | |||
1 | name: ci | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
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 @@ | |||
1 | language: c | ||
2 | |||
3 | sudo: false | ||
4 | |||
5 | env: | ||
6 | - LUA="lua 5.1" | ||
7 | - LUA="lua 5.2" | ||
8 | - LUA="lua 5.3" | ||
9 | - LUA="luajit 2.1" | ||
10 | |||
11 | before_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 | |||
21 | install: | ||
22 | - luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" | ||
23 | |||
24 | script: | ||
25 | - lua -lluacov tests/test.lua | ||
26 | |||
27 | after_success: | ||
28 | - coveralls -b . -i src --dump c.report.json | ||
29 | - luacov-coveralls -j c.report.json -v | ||
30 | |||
31 | notifications: | ||
32 | email: | ||
33 | on_success: change | ||
34 | on_failure: always | ||
@@ -1,5 +1,5 @@ | |||
1 | [](LICENSE) | 1 | [](LICENSE) |
2 | [](https://travis-ci.org/keplerproject/luafilesystem) | 2 | [](https://github.com/keplerproject/luafilesystem/actions) |
3 | [](https://ci.appveyor.com/project/ignacio/luafilesystem) | 3 | [](https://ci.appveyor.com/project/ignacio/luafilesystem) |
4 | [](https://coveralls.io/r/keplerproject/luafilesystem) | 4 | [](https://coveralls.io/r/keplerproject/luafilesystem) |
5 | 5 | ||