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
This commit is contained in:
William Cheng 2018-05-15 14:34:53 +08:00 committed by GitHub
parent 7d9fb9f51e
commit f0234b8ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 5 deletions

View File

@ -35,6 +35,10 @@ addons:
- petstore.swagger.io - petstore.swagger.io
before_install: before_install:
# install haskell
- curl -sSL https://get.haskellstack.org/ | sh
- stack upgrade
- stack --version
# install rust # install rust
- curl -sSf https://static.rust-lang.org/rustup.sh | sh - curl -sSf https://static.rust-lang.org/rustup.sh | sh
# required when sudo: required for the Ruby petstore tests # 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)" - 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 GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH" - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
- go version
script: script:
# fail fast # fail fast

View File

@ -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) 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) [![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) [![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> </div>

View File

@ -41,6 +41,6 @@ test_script:
# generate all petstore clients # generate all petstore clients
- .\bin\windows\run-all-petstore.cmd - .\bin\windows\run-all-petstore.cmd
#cache: cache:
# - C:\maven\ - C:\maven\
# - C:\Users\appveyor\.m2 - C:\Users\appveyor\.m2

View File

@ -848,7 +848,8 @@
</activation> </activation>
<modules> <modules>
<!-- clients --> <!-- 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/elm</module>
<module>samples/client/petstore/groovy</module> <module>samples/client/petstore/groovy</module>
<module>samples/client/petstore/rust</module> <module>samples/client/petstore/rust</module>

View File

@ -13,6 +13,8 @@ build:
- sudo apt-get update -qq - sudo apt-get update -qq
# install stack # install stack
- curl -sSL https://get.haskellstack.org/ | sh - curl -sSL https://get.haskellstack.org/ | sh
- stack upgrade
- stack --version
# install elixir # install elixir
- sudo apt-get install erlang - 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 - wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb