Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.05 KB

CONTRIBUTING.md

File metadata and controls

60 lines (42 loc) · 1.05 KB

Contributing to caproto

Setting up a development installation

The following have been tested on an Ubuntu 16.04 LTS VM.

  1. Clone the repository.
git clone https://github.com/caproto/caproto
cd caproto
  1. Install the EPICS build dependencies.
sudo apt-get install curl libreadline6-dev libncurses5-dev perl re2c tmux strace
  1. Set environment variables.
source setup_local_dev_env.sh
  1. Install EPICS dependencies.
bash .ci/install-epics-base.sh
bash .ci/install-epics-modules.sh
bash .ci/install-epics-modules.sh
bash .ci/install-epics-iocs.sh
  1. Run the IOCs that the tests will communicate with.
bash .ci/run-epics-iocs.sh
  1. Create a Python 3 conda environment and install the test requirements.
conda create -n caproto python=3 numpy
source activate caproto
pip install -r requirements-test.txt
  1. Run the pyepics 'simulator' and continually updates some test PVs to be monitored.
bash .ci/run-pyepics-simulator.sh
  1. Run tests.
python run_tests.py -v