From ab41e78064f669d510acd30868d0174e28b90ab5 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Thu, 13 Jun 2019 18:18:07 +0600 Subject: [PATCH] Fix CircleCI config --- .circleci/config.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e0321613..affe43cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -70,15 +70,19 @@ executors: docker: - image: "darthsim/imgproxy-circleci:latest" working_directory: /go/src/imgproxy + environment: + BASH_ENV: "/root/.bashrc" + +commands: + setup_vips: parameters: vips_version: type: string - environment: - BASH_ENV: "/root/.bashrc" - LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/root/vips/<< parameters.vips_version >>/lib" - PKG_CONFIG_PATH: "$PKG_CONFIG_PATH:/root/vips/<< parameters.vips_version >>/lib/pkgconfig" + steps: + - run: | + echo 'LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/root/vips/<< parameters.vips_version >>/lib"' >> $BASH_ENV + echo 'PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/root/vips/<< parameters.vips_version >>/lib/pkgconfig"' >> $BASH_ENV -commands: install_go: parameters: go_version: @@ -106,11 +110,15 @@ jobs: lint: executor: imgproxy parameters: + vips_version: + type: string go_version: type: string steps: - attach_workspace: at: . + - setup_vips: + vips_version: << parameters.vips_version >> - install_go: go_version: << parameters.go_version >> - run: @@ -123,13 +131,17 @@ jobs: build: executor: imgproxy parameters: + vips_version: + type: string go_version: type: string steps: - attach_workspace: at: . + - setup_vips: + vips_version: << parameters.vips_version >> - install_go: - go_version: << parameters.go_version >> + go_version: << parameters.go_version >> - run: name: Build imgproxy command: go test -v