From 92c3d42315760c08bdeca9d414188bb633299d10 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Sat, 10 Mar 2018 08:36:50 -0300 Subject: [PATCH] Update previous crystal release & docker images for ci to 0.24.2 (#5796) * Use crystallang/crystal-*-build docker images in ci * Update previous crystal to 0.24.2 --- .circleci/config.yml | 3 +-- .travis.yml | 2 +- bin/ci | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ebb99c34257e..4e299a1fdbc7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,7 +27,6 @@ jobs: TRAVIS_OS_NAME: linux ARCH: i386 ARCH_CMD: linux32 - ARCH_LIBRARY_PATH: /opt/crystal/embedded/lib/ steps: *ci_steps test_darwin: @@ -57,7 +56,7 @@ jobs: echo "export CRYSTAL_SHA1=$CIRCLE_SHA1" >> build.env # Which previous version use - export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/v0.24.1/crystal-0.24.1-2" + export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/0.24.2/crystal-0.24.2-1" echo "export PREVIOUS_CRYSTAL_RELEASE_LINUX_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-linux-x86_64.tar.gz" >> build.env echo "export PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-darwin-x86_64.tar.gz" >> build.env diff --git a/.travis.yml b/.travis.yml index a942855a0d11..ee36cc59630d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ services: matrix: fast_finish: true include: - - env: ARCH=i386 ARCH_CMD=linux32 ARCH_LIBRARY_PATH=/opt/crystal/embedded/lib/ + - env: ARCH=i386 ARCH_CMD=linux32 os: linux - env: ARCH=x86_64 ARCH_CMD=linux64 os: linux diff --git a/bin/ci b/bin/ci index 43d3f7b36c9b..51446d3c94a1 100755 --- a/bin/ci +++ b/bin/ci @@ -94,14 +94,25 @@ with_build_env() { export TZ="America/New_York" on_linux verify_linux_environment + + export DOCKER_TEST_PREFIX="crystallang/crystal:0.24.2" + + case $ARCH in + x86_64) + export DOCKER_TEST_IMAGE="$DOCKER_TEST_PREFIX-build" + ;; + i386) + export DOCKER_TEST_IMAGE="$DOCKER_TEST_PREFIX-i386-build" + ;; + esac + on_linux docker run \ --rm -t \ -u $(id -u) \ -v $PWD:/mnt \ -w /mnt \ - -e LIBRARY_PATH="${ARCH_LIBRARY_PATH:-/usr/lib/crystal/lib/}" \ -e CRYSTAL_CACHE_DIR="/tmp/crystal" \ - "jhass/crystal-build-$ARCH" \ + "$DOCKER_TEST_IMAGE" \ "$ARCH_CMD" /bin/sh -c "'$command'" on_osx sudo systemsetup -settimezone $TZ