-
Notifications
You must be signed in to change notification settings - Fork 87
/
.travis.yml
31 lines (24 loc) · 708 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
version: 1.0
language: python
cache: pip
env:
global:
LIBGIT2_VERSION: "0.26.5"
LIBGIT2_SRC_URL: https://github.com/libgit2/libgit2/archive/v${LIBGIT2_VERSION}.tar.gz
LIBGIT2_DIR_NAME: libgit2-${LIBGIT2_VERSION}
LIBGIT2_TAR_NAME: ${LIBGIT2_DIR_NAME}.tar.gz
LIBGIT2: ~/libgit2/_install
LD_LIBRARY_PATH: ${LIBGIT2}/lib:${LD_LIBRARY_PATH}
python:
- "3.6.10"
- "3.7.9"
- "3.8"
install:
- pip --upgarde pip
- ./mk-requires.sh
- pip install -r requirements.txt
script:
- wget -q "$LIBGIT2_SRC_URL" -O $LIBGIT2_TAR_NAME
- tar -xzf $LIBGIT2_TAR_NAME
- (cd $LIBGIT2_DIR_NAME; cmake . -DMAKE_INSTALL_PREFIX=${LIBGIT2} && make -j 5 install)
- pytest tests/unittests