2020-05-13 17:34:35 +02:00
|
|
|
# No language: we download vim and compile it oursselves
|
|
|
|
language: generic
|
|
|
|
|
|
|
|
cache:
|
|
|
|
# Enable cache folder
|
|
|
|
bundler: true
|
|
|
|
directories:
|
|
|
|
- $HOME/docker_images
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
# Save tagged docker images. Info at https://github.com/travis-ci/travis-ci/issues/5358#issuecomment-248915326
|
|
|
|
- >
|
|
|
|
mkdir -p $HOME/docker_images && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
|
|
|
|
| xargs -n 2 -t sh -c 'test -e $HOME/docker_images/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker_images/$1.tar.gz'
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
# Install docker
|
|
|
|
- n_image=$(ls -1 $HOME/docker_images/*.tar.gz | wc -l)
|
|
|
|
- if (( $n_image )); then ls $HOME/docker_images/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load";
|
|
|
|
else docker build --tag vimwiki .;
|
|
|
|
fi
|
|
|
|
|
2020-07-26 22:50:23 +02:00
|
|
|
env:
|
|
|
|
# Define jobs <- vim version <- hard copied from Dockerfile
|
|
|
|
# First to be launched
|
2020-07-29 06:36:44 +02:00
|
|
|
- VIM_VERSION=vint
|
2020-08-13 03:39:13 +02:00
|
|
|
- VIM_VERSION=vim_7.3.429
|
2020-07-26 23:55:47 +02:00
|
|
|
- VIM_VERSION=nvim_0.3.8
|
2020-07-26 22:50:23 +02:00
|
|
|
- VIM_VERSION=vim_8.1.0519
|
2020-08-09 22:13:53 +02:00
|
|
|
# More
|
|
|
|
- VIM_VERSION=vim_7.4.1099 PATTERN='[a-k]*.vader'
|
|
|
|
- VIM_VERSION=vim_7.4.1546 PATTERN='l*.vader'
|
|
|
|
- VIM_VERSION=vim_8.0.0027 PATTERN='[m-z]*.vader'
|
2020-07-26 22:50:23 +02:00
|
|
|
|
2020-05-13 17:34:35 +02:00
|
|
|
script:
|
|
|
|
# Run All tests
|
|
|
|
- pushd test
|
2020-07-29 06:36:44 +02:00
|
|
|
- if [[ "$VIM_VERSION" == 'vint' ]]; then bash run_tests.sh -v -t vint;
|
2020-08-09 22:13:53 +02:00
|
|
|
elif [[ ! -z "$PATTERN" ]]; then bash run_tests.sh -v -t vader -n "$VIM_VERSION" -f "$PATTERN";
|
2020-07-29 06:36:44 +02:00
|
|
|
else bash run_tests.sh -v -t vader -n "$VIM_VERSION";
|
|
|
|
fi
|
2020-05-13 17:34:35 +02:00
|
|
|
- popd
|
2020-07-26 22:50:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=2:
|