Skip to content

Commit 18068e4

Browse files
committed
Travis -> GitHub Actions
1 parent 9f44382 commit 18068e4

File tree

10 files changed

+51
-187
lines changed

10 files changed

+51
-187
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on: push
3+
jobs:
4+
5+
luacheck:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: checkout
9+
uses: actions/checkout@v3
10+
11+
- name: luacheck
12+
uses: lunarmodules/luacheck@v1
13+
14+
tests:
15+
strategy:
16+
matrix:
17+
lua-version: ["5.1.5", "5.2.4", "5.3.6", "5.4.4"]
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: checkout
21+
uses: actions/checkout@v3
22+
23+
- name: localua
24+
run: |
25+
curl https://loadk.com/localua.sh -O
26+
chmod +x localua.sh
27+
./localua.sh .lua "${{ matrix.lua-version }}"
28+
29+
- name: run tests
30+
run: |
31+
./.lua/bin/luarocks test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
localua.sh
2+
.lua/

.luacheckrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
std = "lua54"
2+
exclude_files = { ".lua/*" }
13
ignore = {"212/self", "212/env"}
2-

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.travis/platform.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

.travis/setenv_lua.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis/setup_lua.sh

Lines changed: 0 additions & 122 deletions
This file was deleted.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The following license does not apply to `datalog/datalog.lua`.
22

3-
Copyright (C) 2016 by Pierre Chapuis
3+
Copyright (C) 2016-2022 by Pierre Chapuis
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
# datalog.lua
22

3-
[![Build Status](https://travis-ci.org/catwell/datalog.lua.png?branch=master)](https://travis-ci.org/catwell/datalog.lua)
3+
![CI Status](https://github.com/catwell/datalog.lua/actions/workflows/ci.yml/badge.svg?branch=master)
44

55
## Presentation
66

77
This is a pure Lua (+ LPEG) implementation of Datalog.
88

9-
The core interpreter (`datalog/datalog.lua`) is a modified version of
10-
[John D. Ramsdell's Datalog](http://datalog.sourceforge.net/) from the
11-
MITRE corporation.
12-
13-
This is a work in progress, don't expect it to work flawlessly.
9+
The core interpreter (`datalog/datalog.lua`) is a modified version of [John D. Ramsdell's Datalog](http://datalog.sourceforge.net/) from the MITRE corporation.
1410

1511
## Usage
1612

1713
lua main.lua examples/path.dl
1814

1915
## Dependencies
2016

21-
This is currently only tested with Lua 5.3 compiled with backwards
22-
compatibility for 5.1 and 5.2 and LPEG 0.12. It probably works fine with
23-
other Luas though.
17+
PUC Lua 5.1 or above + LPEG. This is not tested with LuaJIT (but it probably works).
2418

2519
Tests depend on [cwtest](https://github.com/catwell/cwtest).
2620

2721
## Copyright
2822

29-
- `datalog/datalog.lua` is Copyright (C) 2004 The MITRE Corporation
30-
and released under the GNU LGPL.
31-
- All other files are Copyright (c) 2016 Pierre Chapuis and released
32-
under the MIT license, see LICENSE.txt.
23+
- `datalog/datalog.lua` is Copyright (C) 2004 The MITRE Corporation and released under the GNU LGPL.
24+
25+
- All other files are Copyright (c) 2016-2022 Pierre Chapuis and released under the MIT license, see LICENSE.txt.

rockspec/datalog-scm-1.rockspec

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
rockspec_format = "3.0"
2+
13
package = "datalog"
24
version = "scm-1"
35

@@ -30,3 +32,10 @@ build = {
3032
},
3133
install = { bin = { ["datalog.lua"] = "main.lua" } },
3234
}
35+
36+
test_dependencies = { "cwtest" }
37+
38+
test = {
39+
type = "command",
40+
script = "datalog.test.lua",
41+
}

0 commit comments

Comments
 (0)