Skip to content

Commit

Permalink
Setup windows job
Browse files Browse the repository at this point in the history
  • Loading branch information
bfairservice-gt committed Sep 14, 2020
1 parent 5ca2fdb commit 15fa786
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions .travis/windows-test.sh
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 15fa786

Please sign in to comment.