mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 06:38:13 +00:00
Summary: As recommended in https://circleci.com/docs/2.0/using-shell-scripts/#use-shellcheck It will only run on PRs for now. Pull Request resolved: https://github.com/facebook/react-native/pull/19681 Differential Revision: D10111711 Pulled By: hramos fbshipit-source-id: e980a526561dced79e5197a11cfb41a3eba9be8b
13 lines
267 B
Bash
13 lines
267 B
Bash
#!/bin/bash
|
|
|
|
# set default environment variables
|
|
UNIT_TESTS_BUILD_THREADS="${UNIT_TESTS_BUILD_THREADS:-1}"
|
|
|
|
# for buck gen
|
|
mount -o remount,exec /dev/shm
|
|
|
|
set -x
|
|
|
|
# run unit tests
|
|
buck test ReactAndroid/src/test/... --config build.threads="$UNIT_TESTS_BUILD_THREADS"
|