Files
zstd-rs/.travis.yml
T
2017-10-18 15:16:18 -07:00

35 lines
799 B
YAML

# Long tests: run on commits to master branch/cron builds
language: c
sudo: required
dist: trusty
matrix:
include:
# OS X Mavericks
- env: Cmd="make test"
os: osx
before_install:
- if [ `uname` = "Darwin" ]; then brew update; fi
install:
- if [ `uname` = "Darwin" ]; then brew install xz; fi
git:
depth: 1
branches:
only:
- dev
- master
script:
- JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
- echo JOB_NUMBER=$JOB_NUMBER TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
- export FUZZERTEST=-T5mn;
export ZSTREAM_TESTTIME=-T2mn;
export DECODECORPUS_TESTTIME=-T1mn;
git fetch origin dev;
git checkout -f FETCH_HEAD;
sh -c "$Cmd" || travis_terminate 1;