From 15fa78696e19a1f6aa516b6e9a66015a3a674a13 Mon Sep 17 00:00:00 2001 From: Brian Fairservice Date: Wed, 1 Jul 2020 13:20:31 -0400 Subject: [PATCH] Setup windows job --- .gitattributes | 1 + .travis.yml | 10 ++++++++++ .travis/windows-test.sh | 12 ++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 .gitattributes create mode 100644 .travis/windows-test.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..07764a78d98 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 0b1e106f476..770efd95e0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,6 +69,16 @@ jobs: paths: . script: docker exec souf /bin/sh -c "export CXX=g++ && .travis/init_test.sh '--enable-swig'" +# Windows + - stage: Testing + os: windows + language: cpp + before_script: + - choco install wsl-ubuntu-1804 --ignore-checksums + - wsl bash -c "apt-get update -y" + - wsl bash -c "apt-get install -y autoconf bison build-essential flex libffi-dev libncurses5-dev libtool lsb-release mcpp swig zlib1g-dev libsqlite3-dev" + script: '.travis/windows-test.sh' + # Testing stage without Evaluation tests nor OpenMP (,-c) - stage: Testing <<: *osxclang diff --git a/.travis/windows-test.sh b/.travis/windows-test.sh new file mode 100644 index 00000000000..1afc11bcfc5 --- /dev/null +++ b/.travis/windows-test.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e +set -x + + +MSYS_NO_PATHCONV=1 +MSYS2_ARG_CONV_EXCL="*;./test-script.sh;./bootstrap" + +wsl bash bootstrap +wsl bash configure +wsl make -j$(nproc)