language: python
before_install:
  - echo "deb http://deb.torproject.org/torproject.org wheezy main" | sudo tee -a /etc/apt/sources.list
  - gpg --keyserver keys.gnupg.net --recv 886DDD89
  - gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
  - sudo apt-get update
  - sudo apt-get install deb.torproject.org-keyring tor tor-geoipdb build-essential python-dev python-setuptools openssl
python:
  #- "3.3"
  - "2.7"
  - "2.6"
install:
  - pip install -r requirements.txt --use-mirrors
  - python setup.py install
# command to run tests, e.g. python setup.py test
script:
  - cp oonib.conf.example oonib.conf
  - openssl genrsa -des3 -passout pass:oonib -out private.key 4096
  - openssl req -new -key private.key -passin pass:oonib -out server.csr
  - cp private.key private.key.org
  - openssl rsa -in private.key.org private.key
  - openssl x509 -passin pass:oonib -req -days365 -in server.csr -signkey private.key -out certificate.crt
  - bin/oonib

language: python
before_install:
  - echo "deb http://deb.torproject.org/torproject.org wheezy main" | sudo tee -a /etc/apt/sources.list
  - gpg --keyserver keys.gnupg.net --recv 886DDD89
  - gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
  - sudo apt-get update
  - sudo apt-get install deb.torproject.org-keyring tor tor-geoipdb build-essential python-dev python-setuptools openssl
python:
  #- "3.3"
  - "2.7"
  - "2.6"
install:
  - pip install -r requirements.txt --use-mirrors
  - python setup.py install
# command to run tests, e.g. python setup.py test
script:
  - cp oonib.conf.example oonib.conf
  - openssl genrsa -des3 -passout pass:oonib -out private.key 4096
  - openssl req -batch -passin pass:oonib -new -key private.key -out server.csr
  - cp private.key private.key.org
  - openssl rsa -passin pass:oonib -in private.key.org private.key
  - openssl x509 -req -days 365 -in server.csr -signkey private.key -out certificate.crt
  - test -f "private.key.org" && rm -f private.key.org
  - test -f "server.csr" && rm -f server.csr
  - bin/oonib

Update TravisCI config with unattended SSL cert generation commands.
Update TravisCI config with unattended SSL cert generation commands.
