Don't install twice

This commit is contained in:
Maurício Szabo 2022-10-26 20:07:46 -03:00 committed by Maurício Szabo
parent f61cc704c7
commit b9eb240f05

View File

@ -98,12 +98,12 @@ silicon_mac_task:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
memory: 8G
test_script:
- sed -i -e "s/[0-9]*-dev/`date -u +%Y%m%d%H`/g" package.json
- brew install node@16 yarn git python
- git submodule init
- git submodule update
- ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python
- export PATH="/opt/homebrew/bin:/opt/homebrew/opt/node@16/bin:$PATH"
- sed -i -e "s/[0-9]*-dev/`date -u +%Y%m%d%H`/g" package.json
- yarn install || yarn install
- yarn build
- yarn run build:apm
@ -136,7 +136,7 @@ intel_mac_task:
- export PATH="/usr/local/opt/node@16/bin:/usr/local/bin/python3:$PATH"
- git submodule init
- git submodule update
- yarn install || yarn install
- sed -i -e "s/[0-9]*-dev/`date -u +%Y%m%d%H`/g" package.json
- ln -s /usr/local/opt/python3 /usr/local/bin/python
- arch -x86_64 npx yarn install || arch -x86_64 npx yarn install
- arch -x86_64 npx yarn build