openapi-generator/shippable.yml
William Cheng 9f1b9386f1
[CI] Test maven plugin in Travis, move jobs from Shippable to Circle CI (#3087)
* test plugin in travis, move jobs to circle CI

* Revert "[maven-plugin] fix strictSpec parameter (#3071)"

This reverts commit 8c9a1512ae.

* Revert "Revert "[maven-plugin] fix strictSpec parameter (#3071)""

This reverts commit c3e5723c5a365ffb8a6cedfcc4a7a278543e63a3.

* test with jdk8
2019-06-05 00:07:15 +08:00

50 lines
1.7 KiB
YAML

language: java
jdk:
- openjdk10
build:
cache: true
cache_dir_list:
- $HOME/.m2
- $HOME/.stack
- $SHIPPABLE_REPO_DIR/samples/client/petstore/elixir/deps
ci:
- java -version
- mvn --quiet clean install -Dmaven.javadoc.skip=true
# ensure all modifications created by 'mature' generators are in the git repo
# below move to CircleCI ./bin/utils/ensure-up-to-date
# prepare environment for tests
#- 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
- sudo apt-get update
- sudo apt-get install elixir
# install elm
- curl -SL https://github.com/elm/compiler/releases/download/0.19.0/binaries-for-linux.tar.gz | tar xzv -C /usr/local/bin
# install rebar3
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && cp rebar3 /usr/bin
# install php
#- apt-get install php
# show version
#- php -v
- rebar3 -v
- elixir --version
- mix --version
# test samples defined in pom.xml
- mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
# below moved to CircleCI
## generate all petstore samples (client, servers, doc)
#- ./bin/run-all-petstore
## generate all petstore samples (openapi3)
#- ./bin/openapi3/run-all-petstore
## generate test scripts
#- ./bin/tests/run-all-test
## test all generators with fake petstore spec (2.0, 3.0)
#- ./bin/utils/test-fake-petstore-for-all.sh