Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2022-01-27 02:29:21 +0300
committerThijs Schreijer <thijs@thijsschreijer.nl>2022-01-27 02:31:43 +0300
commitc401f83c52461e0cf2e38dfca003f53cef10ce20 (patch)
treea0c459ccf1a7fcff9a10ca10535b313e9a18479e
parentee42e92331baaa63abbd2197d90d72e501ac7111 (diff)
chore(ci) switch CI to github actions (#415)
Co-authored-by: Caleb Maclennan <caleb@alerque.com>
-rw-r--r--.github/workflows/unix_build.yml50
-rw-r--r--.travis.yml30
-rw-r--r--README.md4
-rw-r--r--appveyor.yml2
4 files changed, 53 insertions, 33 deletions
diff --git a/.github/workflows/unix_build.yml b/.github/workflows/unix_build.yml
new file mode 100644
index 0000000..111808b
--- /dev/null
+++ b/.github/workflows/unix_build.yml
@@ -0,0 +1,50 @@
+name: "Unix build"
+
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit-2.1.0-beta3", "luajit-openresty"]
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: leafo/gh-actions-lua@v8
+ with:
+ luaVersion: ${{ matrix.luaVersion }}
+
+ - uses: leafo/gh-actions-luarocks@v4
+
+ - name: dependencies
+ run: |
+ luarocks install busted
+ luarocks install luacov-coveralls
+
+ - name: build
+ run: |
+ luarocks remove penlight --force
+ luarocks make
+
+ - name: Busted tests
+ run: |
+ busted --coverage
+
+ - name: Old test suite
+ run: |
+ lua run.lua tests --luacov
+
+ - name: Examples
+ run: |
+ lua run.lua examples
+
+ - name: Report test coverage
+ if: success()
+ continue-on-error: true
+ run: luacov-coveralls
+ env:
+ COVERALLS_REPO_TOKEN: ${{ github.token }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 3203334..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-language: python
-sudo: false
-
-env:
- - LUA="lua 5.1"
- - LUA="lua 5.2"
- - LUA="lua 5.3"
- - LUA="lua 5.4"
- - LUA="luajit 2.0"
- - LUA="luajit 2.0 --compat 5.2"
- - LUA="luajit 2.1"
- - LUA="luajit 2.1 --compat 5.2"
-
-before_install:
- - pip install hererocks
- - hererocks here -r^ --$LUA
- - source here/bin/activate
- - luarocks install luacov-coveralls
- - luarocks install busted
-
-install:
- - luarocks make
-
-script:
- - busted -c -v
- - lua run.lua tests --luacov
- - lua run.lua examples
-
-after_success:
- - luacov-coveralls
diff --git a/README.md b/README.md
index 91699d0..909b3c2 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Penlight Lua Libraries
-[![Travis build status](https://img.shields.io/travis/lunarmodules/Penlight/master?logo=Travis)](https://travis-ci.org/lunarmodules/Penlight)
-[![AppVeyor build status](https://img.shields.io/appveyor/build/Tieske/penlight-ta1gi/master?logo=appveyor)](https://ci.appveyor.com/project/Tieske/penlight-ta1gi/branch/master)
+[![Unix build](https://img.shields.io/github/workflow/status/lunarmodules/penlight/Unix%20build?label=Unix%20build&logo=linux)](https://github.com/lunarmodules/Penlight/actions)
+[![AppVeyor build status](https://img.shields.io/appveyor/build/Tieske/penlight-ta1gi/master?label=Windows%20build&logo=windows)](https://ci.appveyor.com/project/Tieske/penlight-ta1gi/branch/master)
[![Coveralls code coverage](https://img.shields.io/coveralls/github/lunarmodules/Penlight?logo=coveralls)](https://coveralls.io/github/lunarmodules/Penlight)
[![Luacheck](https://github.com/lunarmodules/Penlight/workflows/Luacheck/badge.svg)](https://github.com/lunarmodules/Penlight/actions)
[![SemVer](https://img.shields.io/github/v/tag/lunarmodules/Penlight?color=brightgreen&label=SemVer&logo=semver&sort=semver)](CHANGELOG.md)
diff --git a/appveyor.yml b/appveyor.yml
index 6b6a855..9094d00 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -25,7 +25,7 @@ build_script:
- luarocks make
test_script:
- - busted -c -v
+ - busted --coverage
- lua run.lua tests --luacov
- lua run.lua examples