Skip to content

Instantly share code, notes, and snippets.

@KyleAMathews
Created January 22, 2014 23:56
Show Gist options
  • Save KyleAMathews/8570081 to your computer and use it in GitHub Desktop.
Save KyleAMathews/8570081 to your computer and use it in GitHub Desktop.
machine:
services:
- cassandra
environment:
yggdrasil_replication_factor: 1
valhalla_bucket: valhalla_mock
amazon_access_key: NOTREAL
amazon_secret_key: NOTREAL
styx_hosts: ''
dependencies:
pre:
# Maybe later
# - gem install foodcritic
#
# So we can 'import titan.pantheon.api'...
- test -d ~/titan-mt/venv/local/lib/python2.7/site-packages/titan || ln -s ~/titan-mt ~/titan-mt/venv/local/lib/python2.7/site-packages/titan
#
# For trial titan.binding
- >
pip install Twisted==12.2.0
PyMySQL==0.5
MySQL-python==1.2.4c1
mock
pycurl
pylint
pyopenssl
sh
redis
genshi
recurly
boto==2.6.0
txredisapi==1.0
thrift==0.8.0
pycassa==1.9.1
sendgrid-python==0.1.0
Jinja2==2.6
DynectDNS==0.3
testfixtures==3.0.1
requests==2.0.1
wallaby-backend-elasticsearch
# workaround issues with ubuntu 11.x+ and openssl builds without sslv2
# TODO: Add idempotent guard for speed
- curl https://raw.github.com/Motiejus/django-webtopay/master/m2crypto_ubuntu | bash
# install forks
- pip install --upgrade git+https://github.com/pantheon-systems/[email protected]#egg=pystatsd
- pip install --upgrade git+https://github.com/pantheon-systems/python-cloudlb.git#egg=cloudlb
- pip install --upgrade git+https://github.com/pantheon-systems/[email protected]_ec2_blockdev_fix#egg=apache-libcloud
# Build the dashboard (run bower-install twice, because bower)
- cd dashboardng; npm install; bundle install --deployment; grunt shell:bower-install shell:bower-install shell:compass-compile shell:brunch-build
- cd styx; npm install
cache_directories:
- dashboardng/node_modules
- dashboardng/bower_components
- dashboardng/vendor
- styx/node_modules
test:
override:
- trial titan.binding
- USE_PYCASSA_STUBS=1 trial titan.yggdrasil.test
- USE_PYCASSA_STUBS=1 trial titan.yggdrasil.rest
- USE_PYCASSA_STUBS=1 trial titan.yggdrasil.test_yggdrasil_routes
- USE_PYCASSA_STUBS=1 trial titan.yggdrasil.models
- USE_PYCASSA_STUBS=1 trial titan.pantheon.tracking.test
- USE_PYCASSA_STUBS=1 trial titan.valhalla.test
# Stubs are OK for speed
# - trial titan.yggdrasil.test
# - trial titan.pantheon.tracking.test
# - trial titan.valhalla.test
- trial titan.pantheon.auth
- trial titan.pantheon
- trial titan.pantheon.pmail.test
- phpunit atlasng/error_collector.php
# Lint
- pylint --rcfile=.pylint styx/deploy.py pantheon/deploy_helpers.py yggdrasil/test_yggdrasil_routes.py yggdrasil/deploy.py pantheon/decorators.py yggdrasil/rest/test/helpers.py utilities/sites.py
# test_apci is failing, but it might be a simple fix. TODO
#- trial titan.valhalla.test_api
- cd dashboardng; grunt unit_test
- cd styx; trial test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment