-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
37 lines (30 loc) · 810 Bytes
/
.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
language: python
python:
- "2.7"
sudo: enabled
# This git hack below from:
# https://github.com/algolia/examples/issues/24#issue-185192022
# Handle git submodules yourself
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
install:
- pip install codecov coverage
- pip install -r requirements.txt
- pip install -r pdist/requirements.txt
- pip install -r weighted_k_means/requirements.txt
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- cd pdist
- make
- make test
- cd ..
script:
- make test
after_success:
- codecov