Skip to content

Commit 7e8f687

Browse files
committed
runtime: Distribute the editorconfig with vim
This is the editorconfig-vim plugin Commit e014708e917b457e8f6c57f357d55dd3826880d4 from https://github.com/editorconfig/editorconfig-vim closes: #2286 related: editorconfig/editorconfig-vim#223 Signed-off-by: Christian Brabandt <[email protected]>
1 parent 2f25e40 commit 7e8f687

36 files changed

+3681
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# appveyor.yml for editorconfig-vim. Currently only tests the core.
2+
# Modified from https://github.com/ppalaga/ec4j/commit/1c849658fb189cd95bc41af95acd43b4f0d75a48
3+
#
4+
# Copyright (c) 2017--2019 Angelo Zerr and other contributors as
5+
# indicated by the @author tags.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
# @author Chris White (cxw42) - Adapted to editorconfig-vim
20+
21+
# === When to build ===
22+
# See https://www.appveyor.com/docs/how-to/filtering-commits/
23+
24+
skip_commits:
25+
message: /\[minor\]/
26+
files:
27+
- '**/*.md'
28+
29+
# === Build matrix ===
30+
31+
# Win is default; Ubuntu is override. See
32+
# https://www.appveyor.com/blog/2018/04/25/specialized-build-matrix-configuration-in-appveyor/
33+
image:
34+
- Visual Studio 2013
35+
- Ubuntu1604
36+
37+
# === How to build ===
38+
39+
cache:
40+
- C:\vim -> .appveyor.yml, tests\fetch-vim.bat
41+
42+
environment:
43+
VIM_EXE: C:\vim\vim\vim80\vim.exe
44+
45+
for:
46+
# Don't run the Windows build if the commit message includes "[ci-linux]"
47+
-
48+
matrix:
49+
only:
50+
- image: Visual Studio 2013
51+
skip_commits:
52+
message: /\[ci-linux\]/
53+
54+
# Platform-specific configuration for Ubuntu
55+
-
56+
matrix:
57+
only:
58+
- image: Ubuntu1604
59+
# $APPVEYOR_BUILD_FOLDER isn't expanded in the environment section
60+
# here, so I can't set $VIM_EXE the way I want to. Instead,
61+
# I set $VIM_EXE in the sh-specific install steps below.
62+
environment:
63+
VIM_EXE: UNDEFINED
64+
cache:
65+
- $APPVEYOR_BUILD_FOLDER/vim -> .appveyor.yml, tests/fetch-vim.sh
66+
67+
# Plus, don't run Ubuntu if the commit message includes [ci-win]
68+
skip_commits:
69+
message: /\[ci-win\]/
70+
71+
install:
72+
# Ubuntu-specific setup. These carry forward to the build_script.
73+
- sh: export VIM_EXE="$APPVEYOR_BUILD_FOLDER/vim/bin/vim"
74+
- sh: export PATH="$PATH":$APPVEYOR_BUILD_FOLDER/vim/bin
75+
- sh: echo "$VIM_EXE , $PATH"
76+
77+
# Cross-platform - test the core
78+
- cmake --version
79+
- git submodule update --init --recursive
80+
- cmd: tests\fetch-vim
81+
- sh: tests/fetch-vim.sh
82+
83+
build_script:
84+
# Build the core tests
85+
- cd tests
86+
- cd core
87+
- mkdir build
88+
- cd build
89+
- cmake ..
90+
91+
# Note on multicore testing:
92+
# Two cores are available per https://help.appveyor.com/discussions/questions/11179-how-many-cores-and-threads-can-be-used-in-free-appveyor-build .
93+
# However, using -j2 seems to make each job take much longer.
94+
95+
test_script:
96+
# Run the core tests
97+
- ctest . --output-on-failure -C Debug
98+
99+
# CTestCustom specifies skipping some tests on Windows.
100+
- cmd: echo "Reminder - skipped some tests"
101+
102+
on_failure:
103+
- echo "failed"
104+
- cmd: type tests\core\build\Testing\Temporary\LastTest.log
105+
- sh: cat tests/core/build/Testing/Temporary/LastTest.log
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
max_line_length = 80
7+
8+
[*.{vim,sh}]
9+
indent_style = space
10+
indent_size = 4
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
max_line_length = 80
14+
15+
[*.rb]
16+
indent_style = space
17+
indent_size = 2
18+
insert_final_newline = true
19+
trim_trailing_whitespace = true
20+
max_line_length = 120
21+
22+
[*.yml]
23+
indent_style = space
24+
indent_size = 2
25+
26+
[*.{bat,vbs,ps1}]
27+
end_of_line = CRLF
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tags
2+
tests/**/build
3+
tests/**/.bundle
4+
5+
# Editor backup files
6+
*.swp
7+
*~
8+
~*
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "plugin_tests"]
2+
path = tests/plugin/spec/plugin_tests
3+
url = https://github.com/editorconfig/editorconfig-plugin-tests.git
4+
[submodule "core_tests"]
5+
path = tests/core/tests
6+
url = https://github.com/editorconfig/editorconfig-core-test.git
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Make sure xvfb works - https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-directly
2+
dist: trusty
3+
4+
matrix:
5+
include:
6+
- name: "plugin"
7+
env: TEST_WHICH=plugin
8+
language: ruby
9+
rvm:
10+
- 2.2.4
11+
gemfile: tests/plugin/Gemfile
12+
- name: "core"
13+
env: TEST_WHICH=core
14+
15+
addons:
16+
apt:
17+
packages:
18+
- vim-gtk
19+
20+
before_script:
21+
- "export DISPLAY=:99.0"
22+
- "sh -e /etc/init.d/xvfb start"
23+
24+
script:
25+
./tests/travis-test.sh
26+
27+
notifications:
28+
email:
29+
on_success: change
30+
on_failure: always
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Contributors to the EditorConfig Vim Plugin:
2+
3+
Hong Xu
4+
Trey Hunner
5+
Kent Frazier
6+
Chris White
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Unless otherwise stated, all files are distributed under the Simplified BSD
2+
license included below.
3+
4+
Copyright (c) 2011-2019 EditorConfig Team
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
1. Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26+
POSSIBILITY OF SUCH DAMAGE.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Some code in editorconfig-vim is derived from code licensed under the
2+
PSF license. The following is the text of that license, retrieved 2019-05-05
3+
from https://docs.python.org/2.6/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python
4+
5+
PSF LICENSE AGREEMENT FOR PYTHON 2.6.9
6+
7+
1. This LICENSE AGREEMENT is between the Python Software Foundation
8+
(``PSF''), and the Individual or Organization (``Licensee'') accessing and
9+
otherwise using Python 2.6.9 software in source or binary form and its
10+
associated documentation.
11+
12+
2. Subject to the terms and conditions of this License Agreement, PSF
13+
hereby grants Licensee a nonexclusive, royalty-free, world-wide
14+
license to reproduce, analyze, test, perform and/or display publicly,
15+
prepare derivative works, distribute, and otherwise use Python 2.6.9
16+
alone or in any derivative version, provided, however, that PSF's
17+
License Agreement and PSF's notice of copyright, i.e., ``Copyright (c)
18+
2001-2010 Python Software Foundation; All Rights Reserved'' are
19+
retained in Python 2.6.9 alone or in any derivative version prepared
20+
by Licensee.
21+
22+
3. In the event Licensee prepares a derivative work that is based on
23+
or incorporates Python 2.6.9 or any part thereof, and wants to make
24+
the derivative work available to others as provided herein, then
25+
Licensee hereby agrees to include in any such work a brief summary of
26+
the changes made to Python 2.6.9.
27+
28+
4. PSF is making Python 2.6.9 available to Licensee on an ``AS IS''
29+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.
30+
BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY
31+
REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY
32+
PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.6.9 WILL NOT INFRINGE
33+
ANY THIRD PARTY RIGHTS.
34+
35+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
36+
2.6.9 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
37+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.6.9,
38+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
39+
40+
6. This License Agreement will automatically terminate upon a material
41+
breach of its terms and conditions.
42+
43+
7. Nothing in this License Agreement shall be deemed to create any
44+
relationship of agency, partnership, or joint venture between PSF and
45+
Licensee. This License Agreement does not grant permission to use PSF
46+
trademarks or trade name in a trademark sense to endorse or promote
47+
products or services of Licensee, or any third party.
48+
49+
8. By copying, installing or otherwise using Python 2.6.9, Licensee
50+
agrees to be bound by the terms and conditions of this License
51+
Agreement.
52+
53+
# vi: set ft=:

0 commit comments

Comments
 (0)