forked from hulu/restfulgit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1014 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
language: python
python:
- "2.7"
before_install:
- "wget -O libgit2.tar.gz https://github.com/libgit2/libgit2/archive/v0.22.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 pep8 pylint Flask-Testing coverage nose coveralls"
- "pip install filemagic"
- "git fetch --unshallow || true"
- "git fetch --all"
- "git branch ambiguous 1f51b91ac383806df9d322ae67bbad3364f50811"
- "git branch -v"
- "git checkout -b master || true"
- "umask 0022"
script:
- "pep8 restfulgit"
- "pylint --rcfile=pylint.rc restfulgit"
- "nosetests --with-xunit --failure-detail tests"
- "PYTHONPATH=. coverage run --omit=restfulgit/app.py tests/test_restfulgit.py"
after_success:
- coveralls