forked from hulu/restfulgit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 1008 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
language: python
python:
- "2.7"
before_install:
- "wget -O libgit2.tar.gz https://github.com/libgit2/libgit2/archive/v0.20.0.tar.gz"
- "tar xf libgit2.tar.gz"
- "cd libgit2-*"
- "mkdir build && cd build"
- "cmake .. -DBUILD_CLAR=OFF && cmake --build ."
- "sudo cmake --build . --target install"
- "cd .."
- "cd .. && rm -rf libgit2-*"
- "export LIBGIT2='/usr/local'"
- "export LDFLAGS=\"-Wl,-rpath='$LIBGIT2/lib',--enable-new-dtags $LDFLAGS\""
before_script:
- "pip install --use-mirrors pep8 'pylint<1.0.0' Flask-Testing coverage nose coveralls"
- "pip install --use-mirrors filemagic"
- "git fetch --unshallow || true"
- "git fetch --all"
- "git branch ambiguous 1f51b91ac383806df9d322ae67bbad3364f50811"
- "git branch -v"
- "git checkout -b master || true"
script:
- "pep8 restfulgit"
- "pylint --rcfile=pylint.rc restfulgit"
- "nosetests --with-xunit --failure-detail tests"
- "PYTHONPATH=. coverage run tests/test_restfulgit.py"
after_success:
- coveralls