Upgrading to GitLab 12.1.0.

.travis.yml 834 Bytes
Newer Older
Changaco's avatar
Changaco committed
1
language: python
2 3 4 5 6 7
matrix:
  include:
    - python: 3.5
      env: TOXENV=py27,py34,py35
    - python: 3.6
      env: TOXENV=py36
Changaco's avatar
Changaco committed
8

Changaco's avatar
Changaco committed
9 10 11
branches:
  only:
    - master
Changaco's avatar
Changaco committed
12

13 14 15 16 17 18 19 20
cache:
  directories:
    - /opt/python-libarchive-c

env:
  global:
    - LIBARCHIVE=/opt/python-libarchive-c/lib/libarchive.so

Changaco's avatar
Changaco committed
21 22
before_install:
  - sudo apt-get install -y zlib1g-dev liblzma-dev libbz2-dev libxml2-dev nettle-dev libattr1-dev libacl1-dev
23 24 25 26 27 28
  - "if [ ! -e $LIBARCHIVE ]; then
        wget http://libarchive.org/downloads/libarchive-3.3.2.tar.gz &&
        tar -xf libarchive-3.3.2.tar.gz && cd libarchive-3.3.2 &&
        ./configure --prefix=/opt/python-libarchive-c --disable-bsdcpio --disable-bsdtar &&
        make && sudo make install && cd .. ;
    fi"
Changaco's avatar
Changaco committed
29

30
install: pip install tox
Changaco's avatar
Changaco committed
31

32
script: tox
Changaco's avatar
Changaco committed
33

Changaco's avatar
Changaco committed
34 35
notifications:
  email: false
36 37 38

sudo: required
dist: trusty