forked from lets-cli/lets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 796 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (36 loc) · 796 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
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:
NO_COLOR: 1
BATS_UTILS_PATH: /bats
command:
- bash
- -c
- |
go build -o /usr/bin/lets *.go
if [[ -n "${LETSOPT_TEST}" ]]; then
bats tests/"${LETSOPT_TEST}" ${LETSOPT_OPTS}
else
bats tests ${LETSOPT_OPTS}
fi