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
| version: '2.1'
|
| services:
| test:
| command: bash -c "luarocks make && busted --shuffle"
| build:
| context: .
| dockerfile: test.Dockerfile
| volumes:
| - ".:/lua/"
| working_dir: "/lua"
|
| lint:
| command: luacheck -q .
| build:
| context: .
| dockerfile: test.Dockerfile
| volumes:
| - ".:/lua/"
| working_dir: "/lua"
|
| upload:
| environment:
| - LUA_ROCKS_API_KEY
| #the command doesn't work without the bash -c, even being a single command
| command: bash -c "luarocks upload xml2lua-*.rockspec --force --api-key=$LUA_ROCKS_API_KEY"
| build:
| context: .
| dockerfile: test.Dockerfile
| volumes:
| - ".:/lua/"
| working_dir: "/lua"
| depends_on:
| - test
|
|