forked from lyndsysimon/osf.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (31 loc) · 1.25 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
# Config file for automatic testing at travis-ci.org
language: python
services:
- elasticsearch
python:
- "2.7"
before_install:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 505A7412
- echo "deb [arch=amd64] http://s3.amazonaws.com/tokumx-debs $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/tokumx.list
- sudo apt-get update
- sudo apt-get -y install tokumx
- wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.1.deb && sudo dpkg -i --force-confold elasticsearch-1.2.1.deb && sudo service elasticsearch restart
install:
- cp website/settings/local-travis.py website/settings/local.py
# - travis_retry invoke encryption
- travis_retry pip install invoke==0.9.0 --force-reinstall --upgrade
- travis_retry pip install flake8 --force-reinstall --upgrade
- travis_retry invoke travis_addon_settings
- travis_retry invoke requirements
- travis_retry invoke addon_requirements
- npm install -g bower
- bower install
before_script:
- flake8 .
script: invoke test_all
cache:
directories:
- website/vendor/bower_components
- $HOME/virtualenv/python2.7/lib/python2.7/site-packages
notifications:
flowdock: 0221882cdda034c0e9ac2a0e766053dd