Skip to content

Commit 87d2d67

Browse files
committed
chore(makefile): add bootstrap targets for normal use and CI environments
1 parent 72ca9ce commit 87d2d67

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Brewfile.ci

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# frozen_string_literal: true
2+
3+
brew 'python'

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
PIP := $(shell command -v pip3 || command -v pip)
12
SOURCES := $(shell \
23
find * \
34
-not -path 'sources/*' \
@@ -40,6 +41,22 @@ SHELL := env \
4041
# Default target
4142
.DEFAULT_GOAL := build
4243

44+
#
45+
# Bootstrap
46+
#
47+
48+
bootstrap: bootstrap-brew
49+
bootstrap-ci: bootstrap-brew bootstrap-brew-ci bootstrap-pip
50+
51+
bootstrap-brew:
52+
brew bundle
53+
54+
bootstrap-brew-ci:
55+
brew bundle --file Brewfile.ci
56+
57+
bootstrap-pip:
58+
$(PIP) install -r requirements-ci.txt
59+
4360
#
4461
# Tools
4562
#

requirements-ci.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dmgbuild

0 commit comments

Comments
 (0)