forked from pinterest/plank
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (31 loc) · 973 Bytes
/
Makefile
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
42
43
44
45
46
47
# This makefile exposes targets that unify building, testing and archiving of
# Plank
.PHONY: all clean lint build test integration_test archive upload_pipeline build_test_index_linux archive_linux install output_stability_test ci_tests
PREFIX := /usr/local
all: upload_pipeline clean build test integration_test archive
clean:
swift package clean
lint:
./Utility/lint.sh
format:
swift run swiftformat .
build:
swift build -v
test: build
swift test
integration_test: build
./Utility/integration-test.sh
output_stability_test: build
./Utility/stable-output-test.sh
ci_tests: test integration_test output_stability_test
archive:
swift build -c release --disable-sandbox
upload_pipeline:
.buildkite/upload_pipeline.sh
build_test_index_linux:
swift Utility/GenerateTestCaseProvider.swift $(PWD)/Tests/CoreTests
archive_linux:
swift build -c release --disable-sandbox
install: archive
mkdir -p $(PREFIX)/bin
cp .build/release/plank $(PREFIX)/bin/