summaryrefslogtreecommitdiff
path: root/Makefile
blob: e9a81b2e2213a6676de213b7b0f637b022fb6065 (plain)
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
.PHONY: test test_ruby test_ruby_rubocop test_ruby_rspec test_go test_go_format test_go_test

validate: verify test

verify: verify_ruby verify_golang

verify_ruby:
	bundle exec rubocop

verify_golang:
	support/go-format check

test: test_ruby test_golang

test_ruby:
	# bin/gitlab-shell must exist and needs to be the Ruby version for
	# rspec to be able to test.
	cp bin/gitlab-shell-ruby bin/gitlab-shell
	bundle exec rspec --color --tag '~go' --format d spec
	rm -f bin/gitlab-shell

test_golang:
	support/go-test

setup: compile
build: compile
compile:
	bin/install
	bin/compile

check:
	bin/check

clean:
	rm -f bin/gitlab-shell