Skip to content

Commit

Permalink
chore(makefile): add bootstrap targets for normal use and CI environm…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
jimeh committed Jun 21, 2021
1 parent 72ca9ce commit 87d2d67
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Brewfile.ci
@@ -0,0 +1,3 @@
# frozen_string_literal: true

brew 'python'
17 changes: 17 additions & 0 deletions Makefile
@@ -1,3 +1,4 @@
PIP := $(shell command -v pip3 || command -v pip)
SOURCES := $(shell \
find * \
-not -path 'sources/*' \
Expand Down Expand Up @@ -40,6 +41,22 @@ SHELL := env \
# Default target
.DEFAULT_GOAL := build

#
# Bootstrap
#

bootstrap: bootstrap-brew
bootstrap-ci: bootstrap-brew bootstrap-brew-ci bootstrap-pip

bootstrap-brew:
brew bundle

bootstrap-brew-ci:
brew bundle --file Brewfile.ci

bootstrap-pip:
$(PIP) install -r requirements-ci.txt

#
# Tools
#
Expand Down
1 change: 1 addition & 0 deletions requirements-ci.txt
@@ -0,0 +1 @@
dmgbuild

0 comments on commit 87d2d67

Please sign in to comment.