Commit 0cfc196
Review CI (#59)
* Delete leftover .dockerignore file
... following Dockerfile deletion of Dockerfile in fc34168.
* Ensure tests failure are reported by CI
... by ensuring that `luarocks ... && prove ...` exit code is
propagated to CI. Remove `docker-compose` in order to reduce levels
of indirections.
Also:
* Test local codebase rather than hardcoded remote master branch - in
order to enable more flexible testing e.g. local develoment testing
or GiHub PR testing or GitHub branch testing;
* Split CI logic in separate script in order to enable local
development testing.
* Do not restrict tests to master branch
* Update leftover reference to docker-compose
* Fix TESTs 83 and 77 errors
First error addressed:
```
# Failed test 'TEST 83: Validator.contains_any_of - status code ok'
# at /usr/local/share/perl/5.18.2/Test/Nginx/Socket.pm line 891.
# got: '500'
# expected: '200'
# Failed test 'TEST 83: Validator.contains_any_of - response_body - response is expected (req 0)'
# at /usr/local/share/perl/5.18.2/Test/Nginx/Socket.pm line 1277.
# @@ -1,4 +1,7 @@
# -true
# +<html>
# -true
# +<head><title>500 Internal Server Error</title></head>
# -Cannot create validator for non-table roles.
# +<body bgcolor="white">
# -false
# +<center><h1>500 Internal Server Error</h1></center>
# +<hr><center>openresty/1.9.7.4</center>
# +</body>
# +</html>
# Failed test 'TEST 83: Validator.contains_any_of - pattern "[error]" should not match any line in error.log but matches line "2017/03/21 17:34:37 [error] 2091\#0: *1 failed to load inlined Lua code: content_by_lua(nginx.conf:91):7: unexpected symbol near '[', client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)'
# at /usr/local/share/perl/5.18.2/Test/Nginx/Socket.pm line 1157.
```1 parent ec55be9 commit 0cfc196
File tree
7 files changed
+31
-29
lines changed- t
7 files changed
+31
-29
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1966 | 1966 | | |
1967 | 1967 | | |
1968 | 1968 | | |
1969 | | - | |
| 1969 | + | |
1970 | 1970 | | |
1971 | 1971 | | |
1972 | 1972 | | |
1973 | | - | |
| 1973 | + | |
1974 | 1974 | | |
1975 | 1975 | | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | 1979 | | |
1980 | 1980 | | |
1981 | | - | |
| 1981 | + | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | 1984 | | |
| |||
1991 | 1991 | | |
1992 | 1992 | | |
1993 | 1993 | | |
1994 | | - | |
| 1994 | + | |
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
| |||
2096 | 2096 | | |
2097 | 2097 | | |
2098 | 2098 | | |
2099 | | - | |
| 2099 | + | |
2100 | 2100 | | |
2101 | 2101 | | |
2102 | 2102 | | |
2103 | | - | |
| 2103 | + | |
2104 | 2104 | | |
2105 | 2105 | | |
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
2109 | 2109 | | |
2110 | 2110 | | |
2111 | | - | |
| 2111 | + | |
2112 | 2112 | | |
2113 | 2113 | | |
2114 | 2114 | | |
| |||
2121 | 2121 | | |
2122 | 2122 | | |
2123 | 2123 | | |
2124 | | - | |
| 2124 | + | |
2125 | 2125 | | |
2126 | 2126 | | |
2127 | 2127 | | |
0 commit comments