forked from cdbattags/lua-resty-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci
More file actions
executable file
·21 lines (19 loc) · 652 Bytes
/
Copy pathci
File metadata and controls
executable file
·21 lines (19 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -ev # Ref https://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
case "${1:?}" in
before_install)
git submodule update --init --recursive
docker pull cdbattags/openresty-testsuite:latest
;;
script)
docker run \
-i \
--rm \
--entrypoint=/bin/sh \
-v "$(pwd)":/lua-resty-jwt \
-w /lua-resty-jwt \
--name lua-resty-jwt-tests \
cdbattags/openresty-testsuite:latest \
-c 'luarocks make lua-resty-jwt-dev-0.rockspec && prove -r t'
;;
esac