Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI xcode_install_go script #498

Merged
merged 2 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
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
Expand Up @@ -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

Expand Down
15 changes: 8 additions & 7 deletions .circleci/xcode_install_go
Original file line number Diff line number Diff line change
Expand Up @@ -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}