2016-07-11 05:54:18 +00:00
|
|
|
language: java
|
|
|
|
|
|
|
|
jdk:
|
2019-01-17 04:26:26 +00:00
|
|
|
- openjdk10
|
2016-07-11 05:54:18 +00:00
|
|
|
|
|
|
|
build:
|
2016-07-31 14:37:06 +00:00
|
|
|
cache: true
|
|
|
|
cache_dir_list:
|
|
|
|
- $HOME/.m2
|
2017-10-02 05:06:45 +00:00
|
|
|
- $HOME/.stack
|
2017-10-02 05:15:49 +00:00
|
|
|
- $SHIPPABLE_REPO_DIR/samples/client/petstore/elixir/deps
|
2016-07-11 05:54:18 +00:00
|
|
|
ci:
|
2018-10-09 02:25:28 +00:00
|
|
|
- java -version
|
2018-10-27 10:54:16 +00:00
|
|
|
- mvn --quiet clean install -Dmaven.javadoc.skip=true
|
2018-05-24 14:18:35 +00:00
|
|
|
# ensure all modifications created by 'mature' generators are in the git repo
|
2018-09-01 13:02:28 +00:00
|
|
|
# below move to CircleCI ./bin/utils/ensure-up-to-date
|
2018-06-16 16:49:01 +00:00
|
|
|
# prepare environment for tests
|
2019-01-03 08:04:35 +00:00
|
|
|
#- sudo apt-get update -qq
|
2017-10-01 06:24:04 +00:00
|
|
|
# install stack
|
|
|
|
- curl -sSL https://get.haskellstack.org/ | sh
|
2018-05-15 06:34:53 +00:00
|
|
|
- stack upgrade
|
|
|
|
- stack --version
|
2017-09-27 12:53:27 +00:00
|
|
|
# install elixir
|
2019-01-03 08:04:35 +00:00
|
|
|
#- sudo apt-get install erlang
|
2017-09-27 12:53:27 +00:00
|
|
|
- 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
|
2018-09-04 06:24:43 +00:00
|
|
|
# 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
|
2018-04-26 10:12:00 +00:00
|
|
|
# install rebar3
|
|
|
|
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && cp rebar3 /usr/bin
|
2018-08-03 02:47:54 +00:00
|
|
|
# install php
|
2019-01-03 08:04:35 +00:00
|
|
|
#- apt-get install php
|
2018-04-26 10:12:00 +00:00
|
|
|
# show version
|
2019-01-03 08:04:35 +00:00
|
|
|
#- php -v
|
2018-04-26 10:12:00 +00:00
|
|
|
- rebar3 -v
|
2017-09-27 12:53:27 +00:00
|
|
|
- elixir --version
|
|
|
|
- mix --version
|
|
|
|
# test samples defined in pom.xml
|
2018-12-21 02:16:31 +00:00
|
|
|
- mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
|
2019-06-04 16:07:15 +00:00
|
|
|
# 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
|