forked from zmartzone/lua-resty-openidc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (29 loc) · 834 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: c
sudo: required
services:
- docker
env:
global:
- VERSION=1.7.0-2
- NAME=lua-resty-openidc
- ROCKSPEC=$NAME-$VERSION.rockspec
- LUAROCKS=2.3.0
matrix:
- LUA=lua5.1
before_install:
- docker build -f tests/Dockerfile . -t lua-resty-openidc/test
- source .travis/setenv_lua.sh
install:
- luarocks install Lua-cURL --server=https://luarocks.org/dev
- luarocks install lunitx
- luarocks install JSON4Lua
script:
- luarocks make --pack-binary-rock $ROCKSPEC CFLAGS="-O2 -fPIC -fprofile-arcs" LIBFLAG="-shared"
- docker run -it --rm lua-resty-openidc/test:latest
# The API key comes from an environment variable configured on https://travis-ci.org
after_success:
- luarocks upload --api-key=$API_KEY $ROCKSPEC
notifications:
email:
on_success: change
on_failure: always