Try out multiple OSs
authorLuke Lau <luke_lau@icloud.com>
Mon, 12 Nov 2018 22:25:55 +0000 (22:25 +0000)
committerLuke Lau <luke_lau@icloud.com>
Mon, 12 Nov 2018 22:26:32 +0000 (22:26 +0000)
.travis.yml

index faae98652da6078d133cecc3bf13a6f1990c4b4a..60a7e5ad8f113cc052c9a4d498cf8cfb60ce10d9 100644 (file)
@@ -2,6 +2,11 @@ language: c
 
 sudo: false
 
+os:
+- windows
+- linux
+- osx
+
 cache:
   directories:
     - .stack-work
@@ -12,12 +17,18 @@ cache:
 addons:
   apt:
     packages:
+      - haskell-stack
+      - npm
+  homebrew:
+    packages:
+      - haskell-stack
       - npm
 
 before_install:
   - mkdir -p ~/.local/bin
   - export PATH=$HOME/.local/bin:$PATH
-  - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
+  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack; fi
+  # - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
   - mkdir -p haskell-ide-engine
   - cd $HOME/haskell-ide-engine
   - git init