Skip to content

Commit

Permalink
Windows tests @ Mon Aug 26 21:50:43 AEST 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Aug 26, 2019
1 parent cf350f0 commit 5d4a630
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 18 deletions.
45 changes: 28 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,33 @@ script:

matrix:
include:
# - env: TEST_INSTANCE=test-alpine
# - env: TEST_INSTANCE=test-alpine-curl
# - env: TEST_INSTANCE=test-alpine-wget
# - env: TEST_INSTANCE=test-alpine-user
# - env: TEST_INSTANCE=test-alpine-lfs
# - env: TEST_INSTANCE=test-debian
# - env: TEST_INSTANCE=test-debian-user
# - env: TEST_INSTANCE=test-ubuntu
# - env: TEST_INSTANCE=test-centos
# - env: TEST_INSTANCE=test-arch
# - env: TEST_INSTANCE=test-fedora
# - env: TEST_INSTANCE=test-opensuse
# - env: TEST_INSTANCE=test-corehookspath
# - env: TEST_INSTANCE=test-whitespace
# - env: TEST_INSTANCE=test-rules
# - env: TEST_INSTANCE=coverage
# windows

# Windows comes first because it's the slowest
- os: windows
env: TEST_INSTANCE=test-windows

# execute all the steps as-is on OS X
- os: osx
env: TEST_INSTANCE=exec-steps

# all the Linux tests
- env: TEST_INSTANCE=test-alpine
- env: TEST_INSTANCE=test-alpine-curl
- env: TEST_INSTANCE=test-alpine-wget
- env: TEST_INSTANCE=test-alpine-user
- env: TEST_INSTANCE=test-alpine-lfs
- env: TEST_INSTANCE=test-debian
- env: TEST_INSTANCE=test-debian-user
- env: TEST_INSTANCE=test-ubuntu
- env: TEST_INSTANCE=test-centos
- env: TEST_INSTANCE=test-arch
- env: TEST_INSTANCE=test-fedora
- env: TEST_INSTANCE=test-opensuse
- env: TEST_INSTANCE=test-corehookspath
- env: TEST_INSTANCE=test-whitespace

# run some of the pre-commit checks in CI too
- env: TEST_INSTANCE=test-rules

# execute a build to measure test coverage
- env: TEST_INSTANCE=coverage
2 changes: 1 addition & 1 deletion tests/exec-steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi
TEST_RUNS=0
FAILED=0
SKIPPED=0
TIMEOUT=10
TIMEOUT=${TIMEOUT:-10}

FAILED_TEST_LIST=""

Expand Down
4 changes: 4 additions & 0 deletions tests/test-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ sed -i -E "s|if ! grep '/docker/' </proc/self/cgroup >/dev/null 2>&1; then|if fa
# Configure a default Git template directory for Windows
export GIT_TEMPLATE_DIR="/c/Program Files/Git/mingw64/share/git-core/templates"

# Give tests a bit more time on Windows
export TIMEOUT=15

# Run the tests with no input available
: | sh "$ROOT_DIR"/tests/exec-steps.sh

0 comments on commit 5d4a630

Please sign in to comment.