Skip to content

Commit

Permalink
Upgrade Node and Yarn to recover test-e2e (facebook#443)
Browse files Browse the repository at this point in the history
Summary:
Upgrade the environment to use latest stable Node and Yarn to recover the test-e2e.

Pull Request resolved: facebook#443

Test Plan: CircleCI

Reviewed By: dulinriley

Differential Revision: D25968386

Pulled By: Huxpro

fbshipit-source-id: 03f7433a8abd782922f28ed8354108849eb36c62
  • Loading branch information
Huxpro authored and facebook-github-bot committed Jan 21, 2021
1 parent 1d7bced commit 0893915
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,17 +420,22 @@ jobs:

npm:
docker:
- image: ubuntu:rolling
- image: cimg/node:lts
environment:
- YARN: yarnpkg
- TERM: dumb
- DEBIAN_FRONTEND: noninteractive
steps:
- run:
name: Print versions
command: |
node --version
yarn --version
- run:
name: Install certificates required to attach workspace
command: |
apt-get update
apt-get install -y ca-certificates
sudo apt-get update
sudo apt-get install -y ca-certificates
- attach_workspace:
at: /tmp/hermes/input
Expand All @@ -439,7 +444,6 @@ jobs:
name: Install dependencies and set up
command: |
mkdir -p /tmp/hermes/output
apt-get install -y git npm yarnpkg
- checkout

Expand Down Expand Up @@ -508,8 +512,10 @@ jobs:
. "$NVM_DIR/nvm.sh"
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
nvm install 12
nvm use 12
nvm install 14
nvm use 14
# Reinstall the latest version of Yarn.
npm install --global yarn
brew install gnu-sed
brew install md5sha1sum
brew tap homebrew/cask
Expand All @@ -518,6 +524,11 @@ jobs:
echo 'export PATH="/usr/local/share/android-sdk/platform-tools:/usr/local/share/android-sdk/tools/bin:$PATH"' >> $BASH_ENV
# At some point, adb ended up in platform-tools/platform-tools. Work around that.
echo 'export PATH="/usr/local/share/android-sdk/platform-tools/platform-tools:$PATH"' >> $BASH_ENV
- run:
name: Print versions
command: |
node --version
yarn --version
- run:
name: Install emulator dependencies
command: (yes | sdkmanager "platform-tools" "platforms;android-26" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;26.0.0" "system-images;android-26;google_apis;x86" "emulator" --verbose) || true
Expand Down

0 comments on commit 0893915

Please sign in to comment.