Files
ReAgent/scripts/setup.sh
T
Kittipat Virochsiri d9bbcfafc2 Fix CI (#230)
Summary: Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/230

Reviewed By: kaiwenw

Differential Revision: D21025113

Pulled By: kittipatv

fbshipit-source-id: 9e7c5b514ea1c2ad72c7f6da53d71e2d8f1d5604
2020-04-14 14:53:23 -07:00

21 lines
405 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
set -ex
pip uninstall -y reagent
# Install the current directory into python path
pip install -e .
# Build RASP and run tests
mkdir -p serving/build
pushd serving/build
cmake -DCMAKE_PREFIX_PATH=$HOME/libtorch ..
make -j4
make test
popd
# Run workflow tests
pytest reagent/test/workflow/test_oss_workflows.py