2 ###############################################################################
3 # reddit Drone environment installer
4 # ----------------------------------
5 # This script re-purposes some of our existing vagrant/Travis install and
6 # setup scripts for our Drone CI builds.
8 # NOTE: You don't want to run this script directly in your development
9 # environment, since we assume that it's running within this Docker image
10 # that Drone runs our builds within: https://github.com/reddit/docker-reddit-py
12 # docker-reddit-py has most of the apt dependencies pre-installed in order to
13 # significantly reduce our build times.
15 # Refer to .drone.yml in the repo root to see where this script gets called
17 ###############################################################################
19 ###############################################################################
20 # Install prerequisites
21 ###############################################################################
23 # Under normal operation, this won't install anything new. We're re-using the
24 # logic that checks to make sure all services have finished starting before
26 install
/install_services.sh
28 ###############################################################################
29 # Install and configure the reddit code
30 ###############################################################################
33 python setup.py develop
35 ln -sf example.ini
test.ini
38 ###############################################################################
39 # Configure local services
40 ###############################################################################
42 # Creates the column families required for the tests
43 install
/setup_cassandra.sh