2022-07-15 05:35:36 +02:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
# Xcode Cloud scripts
|
|
|
|
|
|
|
|
set -xeu
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
# list hardware
|
|
|
|
system_profiler SPSoftwareDataType SPHardwareDataType
|
|
|
|
|
|
|
|
echo $PWD
|
|
|
|
cd $CI_WORKSPACE
|
|
|
|
echo $PWD
|
|
|
|
|
2022-07-15 07:02:54 +02:00
|
|
|
# install ruby from homebrew
|
|
|
|
brew install ruby
|
2022-07-27 12:41:39 +02:00
|
|
|
echo 'export PATH="/Users/local/Homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
|
|
|
|
source ~/.zshrc
|
|
|
|
|
2022-07-15 05:35:36 +02:00
|
|
|
ruby --version
|
2022-07-27 12:41:39 +02:00
|
|
|
which gem
|
2022-07-15 05:35:36 +02:00
|
|
|
|
2022-07-15 07:32:02 +02:00
|
|
|
# workaround default installation location cannot access without sudo problem
|
|
|
|
echo 'export GEM_HOME=$HOME/gems' >>~/.bash_profile
|
|
|
|
echo 'export PATH=$HOME/gems/bin:$PATH' >>~/.bash_profile
|
|
|
|
export GEM_HOME=$HOME/gems
|
|
|
|
export PATH="$GEM_HOME/bin:$PATH"
|
|
|
|
|
2022-07-15 05:35:36 +02:00
|
|
|
# install bundle gem
|
2022-07-15 07:32:02 +02:00
|
|
|
gem install bundler --install-dir $GEM_HOME
|
2022-07-15 05:35:36 +02:00
|
|
|
|
|
|
|
# setup gems
|
|
|
|
bundle install
|
|
|
|
|
|
|
|
bundle exec arkana
|