@@ -10,14 +10,15 @@ dist: trusty
1010os :
1111 - linux
1212 - osx
13+ - windows
1314
1415# Use a Travis image containing an Xcode we support
1516# This prevents surprise upgrades!
1617osx_image : xcode7.3
1718
18- language : c++
19+ language : cpp
1920
20- compiler :
21+ compiler :
2122 - clang
2223 - gcc
2324
@@ -46,11 +47,13 @@ matrix:
4647 compiler : gcc
4748 - os : linux
4849 compiler : clang
50+ - os : windows
51+ compiler : clang
4952
5053# Install any required tools
5154before_install :
5255 - |
53- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
56+ if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
5457 rvm --default use 2.2.1
5558 gem install xcpretty
5659 fi
@@ -59,13 +62,22 @@ before_install:
5962 if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
6063 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
6164 sudo apt-get -qq update
62- sudo apt-get -qq install g++-4.9
65+ sudo apt-get -qq install g++-4.9
66+ fi
67+
68+ - |
69+ if [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then
70+ choco install --yes cygwin -params '/InstallDir:C:\Cygwin'
71+ choco install --yes --source cygwin bash curl zip unzip
72+ choco install make
73+ choco install winflexbison
6374 fi
6475
6576# Set up the source tree by fetching Linux-specific prebuilt objects
6677install :
6778 - if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then (cd prebuilt && ./fetch-libraries.sh linux x86_64) ; fi
6879 - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then (cd prebuilt && ./fetch-libraries.sh mac) ; fi
80+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then (cd prebuilt && ./fetch-libraries.sh win32 x86_64) ; fi
6981
7082# Bootstrap the LCB compiler, build the default target set and run a
7183# the default test suite.
@@ -90,7 +102,16 @@ script: |
90102 ;;
91103 esac
92104
93- if [[ "${COVERITY_SCAN_BRANCH}" != "1" ]]; then
105+ if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
106+ export USE_WINFLEXBISON=1
107+ export SKIP_LCIDLC=1
108+ export BUILDTYPE=Fast
109+ cmd.exe /C configure.bat &&
110+ cmd.exe /C make.cmd &&
111+ python tools/editbin.py win-x86_64-bin/standalone-community.exe &&
112+ MODE=fast make -C tests lcs-check &&
113+ MODE=fast make -C extensions lcs-check
114+ elif [[ "${COVERITY_SCAN_BRANCH}" != "1" ]]; then
94115 mkdir -p "${LICENSE_DIR}" &&
95116 touch "${LICENSE_DIR}/livecode-firstrun.lcf" &&
96117 make all-${BUILD_PLATFORM} &&
0 commit comments