-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 873 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 873 Bytes
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
services:
base: &base
image: lets
build:
context: .
dockerfile: Dockerfile
working_dir: /app
volumes:
- ./:/app
lint:
image: lets-lint
working_dir: /app
user: ${CURRENT_UID}
volumes:
- ./:/app
entrypoint: golangci-lint run -v -c .golangci.yaml --fix
test:
<<: *base
environment:
LETS_CONFIG_DIR: ..
command: gotestsum --format testname -- ./... -coverprofile=coverage.out
test-bats:
<<: *base
environment:
LETS_CHECK_UPDATE: 0
NO_COLOR: 1
BATS_UTILS_PATH: /bats
command:
- bash
- -c
- |
go build -buildvcs=false -o /usr/bin/lets ./cmd/lets
ls -l /usr/bin/lets
if [[ -n "${LETSOPT_TEST}" ]]; then
bats tests/"${LETSOPT_TEST}" ${LETSOPT_OPTS}
else
bats tests ${LETSOPT_OPTS}
fi