mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-09 23:18:10 -05:00
The only way to test travis is to deploy to master with a `.travis.yml` file and wait for travis-ci to pick up the change. To do some pre-testing here, the `Vagrantfile` has been split into two distinct machines: * `default` is, as before, the full reddit build (we have an opportunity to rename this) * `travis` is a minimal install with only the packages and services required to run `nosetests` against the codebase. It tries to mimic what will happen when we try to build this on travis-ci's workers. As part of this addition, I've moved `install-reddit.sh` to `install/reddit.sh` and populated that `install` folder with common scripts used for both `default` and `travis` builds.
27 lines
363 B
YAML
27 lines
363 B
YAML
sudo: required
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python:
|
|
- "2.7"
|
|
|
|
virtualenv:
|
|
system_site_packages: true
|
|
|
|
services:
|
|
- postgres
|
|
- memcached
|
|
- rabbitmq
|
|
|
|
install:
|
|
- sudo install/travis.sh travis .
|
|
|
|
before_script:
|
|
- install/setup_rabbitmq.sh
|
|
- install/setup_postgres.sh
|
|
- install/setup_cassandra.sh
|
|
|
|
script:
|
|
- cd r2 && nosetests
|