Try windows bat file
authorLuke Lau <luke_lau@icloud.com>
Fri, 7 Dec 2018 14:33:04 +0000 (14:33 +0000)
committerLuke Lau <luke_lau@icloud.com>
Fri, 7 Dec 2018 17:21:42 +0000 (17:21 +0000)
.linux.sh [new file with mode: 0644]
.travis.yml
.windows.bat [new file with mode: 0644]

diff --git a/.linux.sh b/.linux.sh
new file mode 100644 (file)
index 0000000..2ee69a0
--- /dev/null
+++ b/.linux.sh
@@ -0,0 +1,2 @@
+curl -sSL https://get.haskellstack.org/ | sh
+export PATH=$HOME/.local/bin:$PATH
index de3a7f499ed29dfc82b6ad6c6ef5ca9960d28980..a5d4b5d97f7247d5853b48dbfe5857bed8dbd201 100644 (file)
@@ -28,10 +28,8 @@ addons:
       - npm
 
 before_install:
-  - mkdir -p ~/.local/bin
-  - export PATH=$HOME/.local/bin:$PATH
-  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack nodejs 7zip; export PATH=/C/ProgramData/chocolatey/bin:$PATH; refreshenv; fi
-  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -sSL https://get.haskellstack.org/ | sh; fi
+  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then .windows.bat; 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
new file mode 100644 (file)
index 0000000..b59bf0b
--- /dev/null
@@ -0,0 +1,3 @@
+choc install haskell-stack nodejs 7zip
+# export PATH=/C/ProgramData/chocolatey/bin:$PATH
+# refreshenv