From f0234b8ab4953c55508030e29fca3d4bea14eef2 Mon Sep 17 00:00:00 2001
From: William Cheng <wing328hk@gmail.com>
Date: Tue, 15 May 2018 14:34:53 +0800
Subject: [PATCH] Test Go petstore client in Travis CI (#41)

* test go in travis

* test go in shippable

* upgrade stack version

* fix shippable badge

* show stack version

* install go

* set go path

* install go 1.10

* remove go installation

* remove go test

* install haskell in travis

* reenable caching in appveyor

* comment out perl test
---
 .travis.yml   | 5 +++++
 README.md     | 2 +-
 appveyor.yml  | 6 +++---
 pom.xml       | 3 ++-
 shippable.yml | 2 ++
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index b299906b02d4..78ed7d19ca55 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,10 @@ addons:
     - petstore.swagger.io
 
 before_install:
+  # install haskell
+  - curl -sSL https://get.haskellstack.org/ | sh
+  - stack upgrade
+  - stack --version
   # install rust
   - curl -sSf https://static.rust-lang.org/rustup.sh | sh
   # required when sudo: required for the Ruby petstore tests
@@ -74,6 +78,7 @@ install:
   - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
   - export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
   - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
+  - go version
 
 script:
   # fail fast
diff --git a/README.md b/README.md
index fd44adcb70bb..f15184c11144 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
 
 Master (3.0.0): [![Build Status](https://travis-ci.org/OpenAPITools/openapi-generator.svg?branch=master)](https://travis-ci.org/OpenAPITools/openapi-generator)
 [![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
-[![Run Status](https://img.shields.io/shippable/5782588a3be4f4faa56c5bea/master.svg?label=Template%20Test)](https://app.shippable.com/github/OpenAPITools/openapi-generator/dashboard)
+[![Run Status](https://api.shippable.com/projects/5af6bf74e790f4070084a115/badge?branch=master?label=Template%20Test)](https://app.shippable.com/github/OpenAPITools/openapi-generator/dashboard)
 [![Windows Test](https://ci.appveyor.com/api/projects/status/github/openapitools/openapi-generator?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
 
 </div>
diff --git a/appveyor.yml b/appveyor.yml
index f80658b3efdf..376277e16bad 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -41,6 +41,6 @@ test_script:
 
   # generate all petstore clients
   - .\bin\windows\run-all-petstore.cmd
-#cache:
-#  - C:\maven\
-#  - C:\Users\appveyor\.m2
+cache:
+  - C:\maven\
+  - C:\Users\appveyor\.m2
diff --git a/pom.xml b/pom.xml
index 72b3740d61af..9b0e53518784 100644
--- a/pom.xml
+++ b/pom.xml
@@ -848,7 +848,8 @@
             </activation>
             <modules>
                 <!-- clients -->
-                <!-- elm client not fully ready for CI yet -->
+                <module>samples/client/petstore/haskell-http-client</module>
+
                 <module>samples/client/petstore/elm</module>
                 <module>samples/client/petstore/groovy</module>
                 <module>samples/client/petstore/rust</module>
diff --git a/shippable.yml b/shippable.yml
index 2795fa6d18d4..871bf4077974 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -13,6 +13,8 @@ build:
     - sudo apt-get update -qq
     # install stack
     - curl -sSL https://get.haskellstack.org/ | sh
+    - stack upgrade
+    - stack --version
     # install elixir
     - sudo apt-get install erlang
     - wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb