From 78985ded0672d686c2868f13137eea7fdf5f7e10 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Mon, 13 Nov 2017 11:47:48 +0100 Subject: circleci: build R15B03 with debian 8 --- .circleci/config.yml | 25 +++++++++++++++++++++++++ kerl | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..147ba9f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2 +jobs: + build: + docker: + - image: debian:8 + environment: + - _KERL_VSN: R15B03-1 + - KERL_CONFIGURE_DISABLE_APPLICATIONS: 'odbc' + steps: + - run: apt-get update && apt-get upgrade -y + - run: apt-get install -y git curl build-essential libncurses-dev libssl-dev + - checkout + - run: ./kerl update releases + - run: + command: ./kerl build "$_KERL_VSN" "$_KERL_VSN" + no_output_timeout: 45m + - run: ./kerl install "$_KERL_VSN" "install_$_KERL_VSN" + - run: ./kerl status + - run: | + set -x + source $(./kerl path install_$_KERL_VSN)/activate + erl -s crypto -s init stop + kerl_deactivate + - run: ./kerl delete installation $(./kerl path install_$_KERL_VSN) + - run: ./kerl delete build "$_KERL_VSN" diff --git a/kerl b/kerl index 70cf5ec..92729f4 100755 --- a/kerl +++ b/kerl @@ -898,7 +898,7 @@ _KERL_ACTIVE_DIR="$absdir" export _KERL_ACTIVE_DIR # https://twitter.com/mononcqc/status/877544929496629248 export _KERL_SAVED_ERL_AFLAGS=" \$ERL_AFLAGS" -kernel_history=\$(echo "\$ERL_AFLAGS" | grep "kernel shell_history") +kernel_history=\$(echo "\$ERL_AFLAGS" | grep 'kernel shell_history' || true) if [ -z "\$kernel_history" ]; then export ERL_AFLAGS="-kernel shell_history enabled \$ERL_AFLAGS" fi -- cgit v1.2.3