Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
4a2e8b18
Commit
4a2e8b18
authored
Oct 8, 2015
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
travis: move some complexity out of travis description (less parallel, but simpler)
parent
e9c93e5b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+7
-17
7 additions, 17 deletions
.travis.yml
test/run.sh
+21
-23
21 additions, 23 deletions
test/run.sh
test/test.config
+2
-0
2 additions, 0 deletions
test/test.config
test/test.run
+0
-2
0 additions, 2 deletions
test/test.run
with
30 additions
and
42 deletions
.travis.yml
+
7
−
17
View file @
4a2e8b18
...
...
@@ -10,31 +10,21 @@ os:
-
osx
env
:
-
VIM_VERSION=normal TEST_SUB_PATH=./
-
VIM_VERSION=normal TEST_SUB_PATH=books/templates/
-
VIM_VERSION=last TEST_SUB_PATH=./
-
VIM_VERSION=last TEST_SUB_PATH=books/templates/
-
VIM_VERSION=neovim TEST_SUB_PATH=./
-
VIM_VERSION=neovim TEST_SUB_PATH=books/templates/
-
VIM_VERSION=macvim TEST_SUB_PATH=./
-
VIM_VERSION=macvim TEST_SUB_PATH=books/templates/
-
VIM_VERSION=normal
-
VIM_VERSION=last
-
VIM_VERSION=neovim
-
VIM_VERSION=macvim
matrix
:
exclude
:
-
os
:
osx
env
:
VIM_VERSION=last TEST_SUB_PATH=./
-
os
:
osx
env
:
VIM_VERSION=last TEST_SUB_PATH=books/templates/
env
:
VIM_VERSION=last
# neovim build fails with homebrew
# Error: undefined method `desc' for Neovim:Class
-
os
:
osx
env
:
VIM_VERSION=neovim TEST_SUB_PATH=./
-
os
:
osx
env
:
VIM_VERSION=neovim TEST_SUB_PATH=books/templates/
-
os
:
linux
env
:
VIM_VERSION=macvim TEST_SUB_PATH=./
env
:
VIM_VERSION=neovim
-
os
:
linux
env
:
VIM_VERSION=macvim
TEST_SUB_PATH=books/templates/
env
:
VIM_VERSION=macvim
install
:
-
if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
...
...
This diff is collapsed.
Click to expand it.
test/run.sh
+
21
−
23
View file @
4a2e8b18
...
...
@@ -12,11 +12,10 @@ python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])
export
VIMAGIT_PATH
=
$(
prealpath
$1
)
export
VADER_PATH
=
$(
prealpath
$2
)
export
TEST_PATH
=
$(
prealpath
$3
)
export
TEST_SUB_PATH
=
$(
prealpath
$TEST_PATH
/
$TEST_SUB_PATH
)
export
VIM_VERSION
=
$4
if
[[
!
(
-d
$VIMAGIT_PATH
&&
-d
$VADER_PATH
&&
-d
$TEST_PATH
&&
-d
$TEST_SUB_PATH
)
]]
;
then
echo
"can't access to one of them '
$VIMAGIT_PATH
' '
$VADER_PATH
' '
$TEST_PATH
'
'
$TEST_SUB_PATH
'
"
if
[[
!
(
-d
$VIMAGIT_PATH
&&
-d
$VADER_PATH
&&
-d
$TEST_PATH
)
]]
;
then
echo
"can't access to one of them '
$VIMAGIT_PATH
' '
$VADER_PATH
' '
$TEST_PATH
'"
exit
1
fi
...
...
@@ -37,20 +36,19 @@ fi
echo
'Vim version'
$VIM
--version
for
line
in
$(
cat
"
$VIMAGIT_PATH
/test/test.
run"
)
;
do
source
$VIMAGIT_PATH
/test/test.
config
IFS
=
':'
read
-a
arr
<<<
"
$line
"
script_filename
=
${
arr
[0]
}
IFS
=
','
read
-a
test_files
<<<
"
${
arr
[1]
}
"
for
script
in
${
!test_scripts[@]
}
;
do
for
filename
in
${
test_files
[@]
}
;
do
echo
"Test
$script_filename
with
$filename
"
for
filename
in
${
test_scripts
[
$script
]
}
;
do
for
test_path
in
${
test_paths
[@]
}
;
do
export
TEST_SUB_PATH
=
$(
prealpath
$TEST_PATH
/
$test_path
)
export
VIMAGIT_TEST_FILENAME
=
$filename
for
i
in
1 0
;
do
export
VIMAGIT_TEST_FROM_EOL
=
$i
echo
"Test
comm
and
s
from
$(
[
$i
-eq
1
]
&&
echo
"end"
||
echo
"start"
)
of line"
echo
"Test
$script
with
$filename
from path
$TEST_SUB_PATH
and from
$(
[
$i
-eq
1
]
&&
echo
"end"
||
echo
"start"
)
of line"
$VIM
-Nu
<
(
cat
<<
EOF
filetype off
...
...
@@ -60,9 +58,9 @@ for line in $(cat "$VIMAGIT_PATH/test/test.run"); do
set rtp+=
$VADER_PATH
filetype plugin indent on
syntax enable
EOF) -c "Vader!
$VIMAGIT_PATH
/test/
$script
_filename
"
EOF) -c "Vader!
$VIMAGIT_PATH
/test/
$script
"
done
done
done
done
This diff is collapsed.
Click to expand it.
test/test.config
0 → 100644
+
2
−
0
View file @
4a2e8b18
declare
-
a
test_paths
=(./ ./
books
/
templates
/)
declare
-
A
test_scripts
=( [
addFile
.
vader
]=
'bootstrap books/models.py'
[
ignoreFile
.
vader
]=
'bootstrap'
)
This diff is collapsed.
Click to expand it.
test/test.run
deleted
100644 → 0
+
0
−
2
View file @
e9c93e5b
addFile.vader:bootstrap,books/models.py
ignoreFile.vader:bootstrap
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment