forked from zhaozg/lua-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (53 loc) · 1.3 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: c
sudo: false
dist: bionic
env:
global:
- LUAROCKS=3.0.3
matrix:
- LUA=lua5.1
- LUA=lua5.1 SSL=openssl-1.0.2t
- LUA=lua5.2 SSL=libressl-3.0.2
- LUA=lua5.3 SSL=openssl-1.1.1d
- LUA=luajit SSL=openssl-1.1.0l
- LUA=luajit2.1
os:
- linux
- osx
matrix:
allow_failures:
# - env: LUA=lua5.2 SSL=libressl-2.8.3
#branches:
# only:
# - master
before_install:
- source .travis/setenv_lua.sh
- bash .travis/setup_uv.sh
- bash .travis/setup_ssl.sh
- git submodule update --init --recursive
- git submodule update --recursive
install:
- bash .travis/install.sh
script:
- cd test
- LD_LIBRARY_PATH=$HOME/.usr/lib lua -e "package.cpath='../?.so'" test.lua
- cd ..
before_deploy:
- bash .travis/make_rockspec.sh $TRAVIS_TAG
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: openssl-$TRAVIS_TAG.tar.gz
skip_cleanup: true
on:
tags: true
branch: master
condition: "$LUA == lua5.1 && $TRAVIS_OS_NAME == linux && -z $SSL"
after_deploy:
- $HOME/.usr/bin/luarocks install lua-cjson # required for luarocks upload
- $HOME/.usr/bin/luarocks upload openssl-$TRAVIS_TAG.rockspec --api-key=${LUAROCKS_TOKEN} --force
- $HOME/.usr/bin/luarocks install openssl
notifications:
email:
on_success: change
on_failure: always