Skip to content

Commit fc33e7c

Browse files
committed
Fix Travis, Windows core tests
- Update travis config to fix xvfb problem - Update tests/core/tests submodule for Windows - Specify configuration when running ctest
1 parent c718cef commit fc33e7c

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ build_script:
9494

9595
test_script:
9696
# Run the core tests
97-
- ctest . --output-on-failure
97+
- ctest . --output-on-failure -C Debug
9898

9999
# CTestCustom specifies skipping UTF-8 tests on Windows.
100100
- cmd: echo "Reminder - did not try UTF-8"

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
url = https://github.com/editorconfig/editorconfig-plugin-tests.git
44
[submodule "core_tests"]
55
path = tests/core/tests
6-
url = https://github.com/editorconfig/editorconfig-core-test.git
6+
url = https://github.com/cxw42/editorconfig-core-test.git
7+
branch = cxwtest

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Make sure xvfb works - https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-directly
2+
dist: trusty
3+
14
matrix:
25
include:
36
- name: "plugin"

tests/travis-test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ else # test core
1414
mkdir build
1515
cd build
1616
cmake ..
17-
ctest . --output-on-failure
17+
ctest . --output-on-failure -VV -C Debug
18+
# -C Debug: for Visual Studio builds, you have to specify
19+
# a configuration.
1820
fi

0 commit comments

Comments
 (0)