-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
48 lines (48 loc) · 1.49 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: python
python:
# - "2.6"
- "2.7"
# - "3.2"
# - "3.3"
# command to install apt dependencies
before_install:
# Install RethinkDB
- sudo add-apt-repository -y ppa:rethinkdb/ppa
- sudo apt-get update -qq
- sudo apt-get install -y rethinkdb
# Install ssdeep
- sudo apt-get install libfuzzy2
- sudo apt-get install libfuzzy-dev
- sudo apt-get install ssdeep
# Install GeoIP
- sudo apt-get install libgeoip-dev
- sudo apt-get install libxml2-dev
- sudo apt-get install libxslt1-dev
# Install LDAP
- sudo apt-get install libldap2-dev
- sudo apt-get install libsasl2-dev
- sudo apt-get install libssl-dev
# command to install pip dependencies
install: "pip install -q -r requirements.txt"
# command to set environment variables
before_script:
- export CSRF_SESSION_KEY=test_secret
- export SECRET_KEY=test_secret
- export MAIL_SERVER=smtp.example.com
- export MAIL_PORT=465
- export MAIL_USERNAME=username
- export MAIL_PASSWORD=password
- export MAIL_SENDER=support@malice.com
- export MAIL_ERROR_RECIPIENT=support@malice.com
- export LDAP_HOST=ldap.example.com
- export LDAP_DOMAIN=example.com
- export LDAP_AUTH_TEMPLATE=login.html
- export LDAP_PROFILE_KEY=employeeID
- export LDAP_AUTH_VIEW=login
- export CAPTCHA_PUBKEY=pubkey
- export CAPTCHA_PRIVKEY=privkey
- sudo rethinkdb &
#services:
# - mongodb
# command to run tests
script: "nosetests -v --with-coverage --cover-package=app --cover-branches --cover-erase --cover-html --cover-html-dir=cover"