2013-02-21 16:53:16 +00:00
|
|
|
language: python
|
2020-08-04 19:20:19 +00:00
|
|
|
dist: bionic
|
2013-02-21 16:53:16 +00:00
|
|
|
python:
|
2015-12-06 19:48:36 +00:00
|
|
|
- "3.5"
|
2018-09-12 03:35:42 +00:00
|
|
|
- "3.6"
|
2020-08-04 19:20:19 +00:00
|
|
|
- "3.7"
|
|
|
|
- "3.8"
|
2021-02-17 16:58:21 +00:00
|
|
|
- "3.9"
|
2013-02-22 18:13:55 +00:00
|
|
|
# whitelist
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2013-02-21 16:53:16 +00:00
|
|
|
# install some archive programs
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
2020-08-04 19:20:19 +00:00
|
|
|
- sudo apt-get install -qq archmage arj bzip2 lbzip2 pbzip2 cabextract ncompress cpio bsdcpio lzop lcab p7zip p7zip-full zip unzip rpm2cpio binutils arc nomarch unalz lrzip bsdtar rzip xdms lzip plzip clzip pdlzip sharutils flac unadf zpaq libchm-bin genisoimage rpm
|
2015-12-06 19:33:26 +00:00
|
|
|
# apt errors:
|
|
|
|
#E: Package 'p7zip-rar' has no installation candidate
|
|
|
|
#E: Package 'rar' has no installation candidate
|
|
|
|
#E: Package 'unrar' has no installation candidate
|
|
|
|
#E: Package 'lha' has no installation candidate
|
2018-09-11 13:27:12 +00:00
|
|
|
#E: Package 'orange' has no installation candidate
|
2015-12-06 19:33:26 +00:00
|
|
|
#E: Unable to locate package unace-nonfree
|
2016-01-10 07:29:47 +00:00
|
|
|
#E: Unable to locate package zopfli
|
2015-12-06 19:33:26 +00:00
|
|
|
|
2016-01-10 08:18:49 +00:00
|
|
|
# Note: pigz gives test errors on Travis CI since option "--" is not
|
|
|
|
# supported, but pigz 2.3.1 supports it. Must be an older version.
|
2016-01-10 07:38:45 +00:00
|
|
|
|
2018-09-12 03:17:01 +00:00
|
|
|
|
2013-02-21 16:53:16 +00:00
|
|
|
# command to install dependencies
|
|
|
|
install:
|
2015-12-09 10:50:44 +00:00
|
|
|
- pip install -r requirements.txt
|
2018-09-12 03:23:59 +00:00
|
|
|
- pip install -q codecov
|
|
|
|
|
2013-02-21 16:53:16 +00:00
|
|
|
# command to run tests
|
2018-09-12 03:23:59 +00:00
|
|
|
script:
|
|
|
|
- make localbuild
|
2021-02-17 16:57:18 +00:00
|
|
|
- COVERAGE="coverage run"
|
|
|
|
- $COVERAGE python -m pytest -v tests/
|
2018-09-12 03:23:59 +00:00
|
|
|
|
2018-09-12 14:13:45 +00:00
|
|
|
after_success:
|
|
|
|
- if [ ! -z "$COVERAGE" ]; then codecov; fi
|
|
|
|
|
2013-02-21 16:53:16 +00:00
|
|
|
#notifications:
|
|
|
|
# email: false
|