-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
19 lines (13 loc) · 718 Bytes
/
Copy pathmakefile
File metadata and controls
19 lines (13 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
mocksDestination="_mocks/generated"
test: mocks runtests
mocks:
@echo "Generating mocks..."
@mockgen -destination=$(mocksDestination)/discordclient/mock_client.go -package=mock_disgordclient github.com/aplombomb/boombot/discord/ifaces DisgordClientAPI
@mockgen -destination=$(mocksDestination)/discorduser/mock_user.go -package=mock_disgorduser github.com/aplombomb/boombot/discord/ifaces DisgordUserAPI
@mockgen -destination=$(mocksDestination)/youtube/mock_searchservice.go -package=mock_youtubesearchservice github.com/aplombomb/boombot/youtube/ifaces YoutubeSearchServiceAPI
runtests:
@echo "Running tests..."
@go test ./...
image:
@echo "Building docker image"...
@docker build . -t boombot-local