-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
.travis.yml
31 lines (26 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: generic
sudo: required
os:
- linux
env:
global:
- GO111MODULE=on
matrix:
- GO_VERSION=go1.12.3 VIM_VERSION=v8.1.1158 VIM_COMMAND="vim"
- GO_VERSION=go1.12.3 VIM_VERSION=v8.1.1158 VIM_COMMAND="xvfb-run -a gvim -f"
- GO_VERSION=go1.12.3 VIM_VERSION=v8.1.1176 VIM_COMMAND="vim"
- GO_VERSION=go1.12.3 VIM_VERSION=v8.1.1176 VIM_COMMAND="xvfb-run -a gvim -f"
# Add this before_install until we have a definitive resolution on
# https://travis-ci.community/t/files-in-checkout-have-eol-changed-from-lf-to-crlf/349/2
before_install:
- cd ../..
- mv $TRAVIS_REPO_SLUG _old
- git config --global core.autocrlf false
- git clone --depth=50 _old $TRAVIS_REPO_SLUG
- cd $TRAVIS_REPO_SLUG
before_install:
- docker --version
- docker pull myitcv/govim:${GO_VERSION}_${VIM_VERSION}_v1 | tee
- cat Dockerfile.user | envsubst '$GO_VERSION,$VIM_VERSION' | docker build -t govim --build-arg USER=$USER --build-arg UID=$UID --build-arg GID=$(id -g $USER) -
script:
- ./_scripts/runDockerRun.sh