Attempt to fix CircleCI build

This commit is contained in:
grossmj 2021-02-27 13:49:22 +10:30
parent a6eb1cc09f
commit e5813a255e

View File

@ -1,5 +1,9 @@
# iOS CircleCI 2.1 configuration file # iOS CircleCI 2.1 configuration file
version: 2.1 version: 2.1
orbs:
node: circleci/node@4.2.0
jobs: jobs:
build: build:
macos: macos:
@ -7,13 +11,16 @@ jobs:
steps: steps:
- checkout - checkout
- node/install:
install-yarn: true
- run: - run:
name: Install nodejs name: Update BREW and print configs
command: | command: |
brew update brew update
brew upgrade yarn brew analytics off
brew upgrade node brew --env
brew --config
- run: - run:
name: Set timezone and check current datetime name: Set timezone and check current datetime
@ -34,6 +41,8 @@ jobs:
curl -o /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b1bd1c4a62e1336422de3614d1fc49ffbce589a8/Formula/readline.rb curl -o /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b1bd1c4a62e1336422de3614d1fc49ffbce589a8/Formula/readline.rb
# remove check for old compilers which creates the error described in https://github.com/sashkab/homebrew-python/issues/36 # remove check for old compilers which creates the error described in https://github.com/sashkab/homebrew-python/issues/36
sed -i.bak -e '58,61d' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb sed -i.bak -e '58,61d' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
# remove 'do devel' block to avoid error: Calling 'devel' blocks in formulae is disabled!
sed -i.bak -e '14,17d' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
brew unlink python brew unlink python
brew uninstall --ignore-dependencies readline brew uninstall --ignore-dependencies readline
brew install readline brew install readline
@ -41,7 +50,7 @@ jobs:
brew pin readline brew pin readline
# --ignore-dependencies is used to prevent this issue: https://github.com/tensorflow/tensorflow/issues/25093 # --ignore-dependencies is used to prevent this issue: https://github.com/tensorflow/tensorflow/issues/25093
brew install --ignore-dependencies python brew install --ignore-dependencies python
brew switch python 3.6.5_1 #brew link python 3.6.5_1
brew info python brew info python
brew pin python brew pin python
@ -105,4 +114,3 @@ workflows:
filters: filters:
tags: tags:
only: /v.*/ only: /v.*/