Move windows to shell
authorLuke Lau <luke_lau@icloud.com>
Fri, 7 Dec 2018 17:24:55 +0000 (17:24 +0000)
committerLuke Lau <luke_lau@icloud.com>
Fri, 7 Dec 2018 19:45:29 +0000 (19:45 +0000)
.linux.sh [changed mode: 0644->0755]
.travis.yml
.windows.bat [deleted file]
.windows.sh [new file with mode: 0644]

old mode 100644 (file)
new mode 100755 (executable)
index 2ee69a0..8eafc62
--- a/.linux.sh
+++ b/.linux.sh
@@ -1,2 +1,3 @@
+#!/bin/sh
 curl -sSL https://get.haskellstack.org/ | sh
 export PATH=$HOME/.local/bin:$PATH
index a5d4b5d97f7247d5853b48dbfe5857bed8dbd201..f26edb0e6c7e24605a0d183f5c3ac78d36777de0 100644 (file)
@@ -28,8 +28,8 @@ addons:
       - npm
 
 before_install:
-  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then .windows.bat; fi
-  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.linux.sh; fi
+  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack nodejs; /C/ProgramData/chocolatey/bin/RefreshEnv.cmd; fi
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.linux.sh; fi
   - mkdir -p haskell-ide-engine
   - cd $HOME/haskell-ide-engine
   - git init
diff --git a/.windows.bat b/.windows.bat
deleted file mode 100644 (file)
index b59bf0b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-choc install haskell-stack nodejs 7zip
-# export PATH=/C/ProgramData/chocolatey/bin:$PATH
-# refreshenv
diff --git a/.windows.sh b/.windows.sh
new file mode 100644 (file)
index 0000000..d774a27
--- /dev/null
@@ -0,0 +1,2 @@
+choco install haskell-stack nodejs 7zip
+/C/ProgramData/chocolatey/bin/RefreshEnv.cmd