forked from pinterest/plank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (27 loc) · 1 KB
/
Makefile
File metadata and controls
42 lines (27 loc) · 1 KB
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
# 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
PREFIX := /usr/local
all: upload_pipeline clean build test integration_test archive
clean:
xcrun swift package clean
lint:
@echo "Lint disabled for now since swiftlint breaks the build by failing to detect variables referenced within string interpolation"
#./Utility/lint.sh
build: lint
xcrun swift build -v -Xswiftc -static-stdlib
test: build_test_index_linux build
xcrun swift test
integration_test: build
./Utility/integration-test.sh
archive:
xcrun swift build -c release -Xswiftc -static-stdlib --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/