#31 from travis-ci/meat-implosion
master Merge pull requestAdd implosion API and handle early terminations
AMD64
no language set
Git
xlcnd/isbnlib-porbase:.travis.yml@87f2c88
sudo: false
language: python
branches:
only:
- dev
- v1.0.2
matrix:
include:
- os: osx
language: generic
env: TOXENV=py37
- python: "3.7"
env: TOXENV=py37
- python: "2.7"
env: TOXENV=py27
- python: "3.6"
env: TOXENV=py36
- python: "3.5"
env: TOXENV=py35
- python: "nightly"
env: TOXENV=nightly
- python: "3.5"
env: TOXENV=checkers
- python: "3.6"
env: ENV=dev
allow_failures:
- env: TOXENV=nightly
- env: ENV=dev
install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip3 install tox; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip3 install -r requirements.txt; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then pip install tox; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then pip install -r requirements.txt; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install -r requirements.txt; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install flake8; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install pep8-naming; fi
- if [[ $TOXENV == 'py35' ]]; then pip install coveralls; fi
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then pip install yapf; fi
script:
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]] && [[ $TOXENV == 'checkers' ]]; then yapf -i isbnlib_porbase; fi
- if [[ ! -z $TOXENV ]]; then tox -e $TOXENV; fi
- if [[ $ENV == 'dev' ]]; then tox -e py36 -c tox-dev.ini; fi
after_success:
- if [[ $TOXENV == 'py35' ]]; then coveralls; fi
notifications:
email:
on_success: never
on_failure: always
Build Config
{
"go": "1.7.1",
"env": {
"global": [
"TRAVIS_COMMIT_SHORT=\"$(echo ${TRAVIS_COMMIT} | cut -b1-7)\"",
"TRAVIS_COMMIT_LESSSHORT=\"$(echo ${TRAVIS_COMMIT} | cut -b1-9)\"",
"PATH=\"${HOME}/gopath/bin:${PATH}\""
]
},
"cache": {
"directories": [
"${HOME}/gopath/bin"
]
},
"addons": {
"artifacts": {
"paths": [
"./build/linux/amd64/cyclist",
"./build/darwin/amd64/cyclist",
"./build.tar.gz"
],
"target_paths": [
"travis-ci/cyclist/$TRAVIS_BRANCH",
"travis-ci/cyclist/$TRAVIS_COMMIT",
"travis-ci/cyclist/$TRAVIS_COMMIT_SHORT",
"travis-ci/cyclist/$TRAVIS_COMMIT_LESSSHORT"
]
}
},
"script": [
"make",
"build/linux/amd64/cyclist --help",
"build/linux/amd64/cyclist serve --help",
"grep -q web Procfile",
"grep -q worker Procfile"
],
"language": "go",
"after_success": [
"bash <(curl -s https://codecov.io/bash)",
"tar -czvf build.tar.gz build Procfile Makefile"
]
}