Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Fix CI xcode_install_go script #498

Merged
merged 2 commits into from
Aug 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ linux_image: &linux_image

macos_image: &macos_image
macos:
xcode: "11.4.0"
xcode: "11.7.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Current build agent doesn't support 11.4.0 version


setup_macos_env: &setup_macos_env

15 changes: 8 additions & 7 deletions .circleci/xcode_install_go
Original file line number Diff line number Diff line change
@@ -9,15 +9,16 @@ set -o errexit
set -o pipefail

PROJECT_RELATIVE_PATH=src/github.com/codeclimate/test-reporter

# Install go

# Install goSDK
mkdir ~/gosdk && cd "$_"
echo 'export PATH=$PATH:$HOME/gosdk/go/bin' >> "$BASH_ENV"
echo 'export GOROOT=$HOME/gosdk/go' >> "$BASH_ENV"
curl -O https://dl.google.com/go/go1.15.darwin-amd64.tar.gz
tar -xzf go1.15.darwin-amd64.tar.gz
echo 'export PATH=$PATH:$PWD/go/bin' >> "$BASH_ENV"

# Set go path
mkdir -p ~/gopath/${PROJECT_RELATIVE_PATH}
echo 'export GOPATH=$HOME/gopath' >> "$BASH_ENV"
# Set go path - workspace root
mkdir -p ~/projects/go/${PROJECT_RELATIVE_PATH} && cd "$_"
echo 'export GOPATH=$HOME/projects/go' >> "$BASH_ENV"
. "$BASH_ENV"
cd $GOPATH/${PROJECT_RELATIVE_PATH}
cp -r ~/project/ $GOPATH/${PROJECT_RELATIVE_PATH}