47:2bae846a0e0e
Anton Shestakov <av6@dwimlabs.net>, Sun, 23 Sep 2018 18:47:17 +0800
pipelines: let's try caching whatever we can

next change 49:0ed0f42e8c28
previous change 28:b4cd2fd2442f

bitbucket-pipelines.yml

Permissions: -rw-r--r--

Other formats: Feeds:
image: ubuntu:xenial
definitions:
caches:
luarocks: ~/.cache/luarocks/
pipelines:
default:
- step:
caches:
- luarocks
script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y
build-essential lua5.1 luarocks mercurial
- luarocks install --local lpc
- luarocks install --local busted
- luarocks install --local luacov
- ~/.luarocks/bin/busted --verbose --coverage
- ~/.luarocks/bin/luacov hglib
- cat luacov.report.out
- luarocks install --local luarocks
# hg:// support was broken before 2.2.2
# (https://github.com/keplerproject/luarocks/commit/20eb947)
- ~/.luarocks/bin/luarocks install --local --verbose
--server=http://luarocks.org/dev hglib scm-0
- cd /tmp
- eval "$(~/.luarocks/bin/luarocks path)"
- lua5.1 "$OLDPWD/examples/version.lua"
- ~/.luarocks/bin/luarocks install --local lua-cjson
- lua5.1 "$OLDPWD/examples/log.lua"