aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-07-21 17:43:37 +0200
committerLoïc Hoguin <[email protected]>2015-07-21 18:21:20 +0200
commit12a4cc5947852fc8b94c133bcbf482a4f085982e (patch)
tree79b0f11dea8574af6a61d8573a323f435f0ac299
parent9a9183edf84b0352bf59a89d840b9ba5369e2197 (diff)
downloadcowboy-12a4cc5947852fc8b94c133bcbf482a4f085982e.tar.gz
cowboy-12a4cc5947852fc8b94c133bcbf482a4f085982e.tar.bz2
cowboy-12a4cc5947852fc8b94c133bcbf482a4f085982e.zip
Add caching of OTP builds for CircleCI
Unfortunately not seeing how I can try it other than committing the file... Oh well, polluting the logs!
-rw-r--r--circle.yml6
-rw-r--r--erlang.mk8
2 files changed, 11 insertions, 3 deletions
diff --git a/circle.yml b/circle.yml
index 1f4ed9a..9192be4 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1,8 +1,14 @@
dependencies:
+ cache_directories:
+ - "~/.kerl"
+ - "~/erlang"
+
pre:
- sudo apt-get install autoconf2.59
- cd $HOME/bin && ln -s /usr/bin/autoconf2.59 autoconf
- cd $HOME/bin && ln -s /usr/bin/autoheader2.59 autoheader
+ - make ci-prepare:
+ timeout: 3600
test:
override:
diff --git a/erlang.mk b/erlang.mk
index 2c589c4..e1270d1 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -16,7 +16,7 @@
ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST)))
-ERLANG_MK_VERSION = 1.2.0-631-g56cbd9e-dirty
+ERLANG_MK_VERSION = 1.2.0-632-g26ea355-dirty
# Core configuration.
@@ -5365,7 +5365,9 @@ CI_OTP ?=
ifeq ($(strip $(CI_OTP)),)
ci::
else
-ci:: $(KERL) $(addprefix ci-,$(CI_OTP))
+ci:: $(addprefix ci-,$(CI_OTP))
+
+ci-prepare: $(addprefix $(CI_INSTALL_DIR)/,$(CI_OTP))
ci-setup::
@@ -5384,7 +5386,7 @@ endef
$(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp))))
define ci_otp_target
-$(CI_INSTALL_DIR)/$(1):
+$(CI_INSTALL_DIR)/$(1): $(KERL)
$(KERL) build git $(OTP_GIT) $(1) $(1)
$(KERL) install $(1) $(CI_INSTALL_DIR)/$(1)
endef