-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gitlab-ci.yml
58 lines (50 loc) · 1.53 KB
/
.gitlab-ci.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
stages: [test, dist]
before_script:
- export MAKEFLAGS="-j$(mk/nproc.sh)" V=1 VERBOSE=1
test:arch:
stage: test
image: registry.gitlab.com/craigbarnes/dockerfiles/lua-testing
script:
- make vars
- make build-all
- make check-all check-luajit
- make clean-obj
- luarocks --lua-version=5.4 --tree=/usr make gumbo-scm-1.rockspec
- lua5.4 -e 'require "gumbo"'
- make clean-obj
- luarocks --lua-version=5.3 --tree=/usr make gumbo-scm-1.rockspec
- lua5.3 -e 'require "gumbo"'
- make clean-obj
- luarocks --lua-version=5.2 --tree=/usr make gumbo-scm-1.rockspec
- lua5.2 -e 'require "gumbo"'
- make clean-obj
- luarocks --lua-version=5.1 --tree=/usr make gumbo-scm-1.rockspec
- lua5.1 -e 'require "gumbo"'
- make clean-obj
- make benchmark CFLAGS='-O3 -DNDEBUG'
test:alpine:
stage: test
image: registry.gitlab.com/craigbarnes/dockerfiles/cdev-alpine
script: &SCRIPT
- make vars
- make build-all
- make check-all
- make benchmark CFLAGS='-O3 -DNDEBUG'
.pages:
image: registry.gitlab.com/craigbarnes/dockerfiles/lua-testing
coverage: '/^ *lines\.*: *(\d+\.\d+\%) .*$/'
artifacts:
paths: [public]
expire_in: 60 days
script:
- git fetch --tags
- make docs dist
- make coverage-report
pages:
extends: .pages
stage: dist
only: [master]
pages:non-master:
extends: .pages
stage: test
except: [master]