Files
filament/build/web/ci-common.sh
2019-02-25 12:02:47 -08:00

28 lines
836 B
Bash
Executable File

#!/bin/bash
curl -OL https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip
unzip -q ninja-mac.zip
chmod +x ninja
export PATH="$PWD:$PATH"
# The Kokoro machines have Python 3.6.3 installed. Let's verify that here, and install the
# distributions required for web/docs.
python --version
python3 --version
pip3 install mistletoe pygments jsbeautifier future_fstrings
sudo pip install certifi
sudo /Applications/Python\ 2.7/Install\ Certificates.command
# FIXME: kokoro machines have node and npm but currently they are symlinked to non-existent files
# npm install -g typescript
# Install emscripten.
curl -L https://github.com/emscripten-core/emsdk/archive/a77638d.zip > emsdk.zip
unzip emsdk.zip ; mv emsdk-* emsdk ; cd emsdk
python emsdk install latest
python emsdk activate latest
export EMSDK="$PWD"
cd ..