Update README for archival
[reddit.git] / install / drone.sh
blobd64519bbd7061711c12f9622fe4a1fe14466ea9e
1 #!/usr/bin/env bash
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
16 # during a build.
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
25 # continuing.
26 install/install_services.sh
28 ###############################################################################
29 # Install and configure the reddit code
30 ###############################################################################
32 pushd r2
33 python setup.py develop
34 make pyx
35 ln -sf example.ini test.ini
36 popd
38 ###############################################################################
39 # Configure local services
40 ###############################################################################
42 # Creates the column families required for the tests
43 install/setup_cassandra.sh