mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
00f176ad95
* Create 'bin/ensure-up-to-date' script * Update shippable config * Do no longer copy 'CI/pom.xml.shippable' to 'pom.xml' * Fix paths in CI/pom.xml.shippable * shippable: remove write to file * shippable: move order * Run 'bin/ruby-petstore.sh' to update 'samples/' * Add Kotlin scripts to the list
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
language: java
|
|
|
|
jdk:
|
|
- oraclejdk8
|
|
|
|
build:
|
|
cache: true
|
|
cache_dir_list:
|
|
- $HOME/.m2
|
|
- $HOME/.stack
|
|
- $SHIPPABLE_REPO_DIR/samples/client/petstore/elixir/deps
|
|
ci:
|
|
- mvn --quiet clean install -f CI/pom.xml.shippable
|
|
# ensure all modifications created by 'mature' generators are in the git repo
|
|
- ./bin/ensure-up-to-date
|
|
# prepare enviroment 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 rebar3
|
|
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && cp rebar3 /usr/bin
|
|
# show version
|
|
- rebar3 -v
|
|
- elixir --version
|
|
- mix --version
|
|
# test samples defined in pom.xml
|
|
- mvn --quiet verify -P samples -f CI/pom.xml.shippable
|
|
# generate all petstore samples (client, servers, doc)
|
|
- ./bin/run-all-petstore
|