2018-03-31 18:56:34 -04:00
|
|
|
sudo: required
|
|
|
|
services: docker
|
|
|
|
|
|
|
|
# Cache intermediate Docker layers. For a description of how this works, see:
|
|
|
|
# https://giorgos.sealabs.net/docker-cache-on-travis-and-docker-112.html
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/docker/
|
2015-02-14 08:38:17 -05:00
|
|
|
|
2015-04-18 11:15:05 -04:00
|
|
|
env:
|
2018-04-09 06:51:34 -04:00
|
|
|
matrix:
|
2018-03-31 18:56:34 -04:00
|
|
|
- VIM_VERSION="7.4" PYTHON_IMAGE=2.7-stretch TAG=vim_74_py2 DOCKER_CACHE_FILE=/home/travis/docker/vim_74_py2.tar.gz
|
|
|
|
- VIM_VERSION="8.0" PYTHON_IMAGE=2.7-stretch TAG=vim_80_py2 DOCKER_CACHE_FILE=/home/travis/docker/vim_80_py2.tar.gz
|
|
|
|
- VIM_VERSION="git" PYTHON_IMAGE=2.7-stretch TAG=vim_git_py2 DOCKER_CACHE_FILE=/home/travis/docker/vim_git_py2.tar.gz
|
2018-04-01 14:50:03 -04:00
|
|
|
- VIM_VERSION="7.4" PYTHON_IMAGE=3.6-stretch TAG=vim_74_py3 DOCKER_CACHE_FILE=/home/travis/docker/vim_74_py3.tar.gz
|
|
|
|
- VIM_VERSION="8.0" PYTHON_IMAGE=3.6-stretch TAG=vim_80_py3 DOCKER_CACHE_FILE=/home/travis/docker/vim_80_py3.tar.gz
|
|
|
|
- VIM_VERSION="git" PYTHON_IMAGE=3.6-stretch TAG=vim_git_py3 DOCKER_CACHE_FILE=/home/travis/docker/vim_git_py3.tar.gz
|
2018-04-09 06:51:34 -04:00
|
|
|
global:
|
|
|
|
secure: PFU1Md8NuN6SQNjx6SsHX7icS9Tacb0xS0Ue9SHll1U7FNdI90F/gnokR6v+j7sdvoiLkwRSwUXeYUmrZS/d9qq8yiRxuqcj/Y0TfHVKqcLXXV/m9xWAN2UKRVF7Z1neerznk52Roo3IRqwgd9U+6d3bTthHKKYg4azBqTM7AFE=
|
2018-04-05 15:52:33 -04:00
|
|
|
before_install: docker/load_docker_cache.sh
|
2015-07-03 15:52:50 -04:00
|
|
|
install:
|
2018-04-09 06:51:34 -04:00
|
|
|
- docker build -t ultisnips:${TAG} --build-arg PYTHON_IMAGE=${PYTHON_IMAGE} --build-arg VIM_VERSION=${VIM_VERSION} --build-arg GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN} .
|
2015-04-18 11:15:05 -04:00
|
|
|
|
2015-07-03 15:52:50 -04:00
|
|
|
script:
|
2018-04-05 15:52:33 -04:00
|
|
|
- docker run -it ultisnips:${TAG} docker/run_tests.sh
|
|
|
|
- docker/save_docker_cache.sh
|
2015-07-18 16:53:41 -04:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/558acac434012ba838cd
|
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: false # default: false
|