bergamot-translator/.circleci/config.yml
Abhishek Aggarwal c478a626a8 Updating ci scripts for the latest upstream changes
- The upstream browsermt/bergamot-translator builds the wasm artifacts
   in top level build folder now
2021-05-04 13:53:33 +02:00

33 lines
763 B
YAML

version: 2.1
jobs:
build:
docker:
- image: 'emscripten/emsdk:2.0.9'
resource_class: medium
working_directory: ~/checkout
steps:
- checkout
- run:
name: Build WASM
command: bash build-wasm.sh
- run:
name: Check artifacts
working_directory: build-wasm
command: |
ls -all bergamot*
if ls bergamot*.wasm &>/dev/null && ls bergamot*.js &>/dev/null && ls bergamot*.data &>/dev/null
then
echo "Artifacts Successfully Generated"
else
echo "Failure: Artifacts Not Present"
exit 1
fi
- store_artifacts:
path: "build-wasm"
destination: "build-wasm"