2016-07-11 05:54:18 +00:00
|
|
|
language: java
|
|
|
|
|
|
|
|
jdk:
|
2017-09-27 12:53:27 +00:00
|
|
|
- oraclejdk8
|
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-06-15 04:55:33 +00:00
|
|
|
- mvn --quiet clean install
|
2018-05-24 14:18:35 +00:00
|
|
|
# ensure all modifications created by 'mature' generators are in the git repo
|
2018-08-06 17:31:37 +00:00
|
|
|
- ./bin/utils/ensure-up-to-date
|
2018-06-16 16:49:01 +00:00
|
|
|
# prepare environment for tests
|
2017-10-01 06:24:04 +00:00
|
|
|
- sudo apt-get update -qq
|
|
|
|
# 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
|
2018-05-03 01:46:39 +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-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
|
|
|
|
- apt-get install php
|
2018-04-26 10:12:00 +00:00
|
|
|
# show version
|
2018-08-03 02:47:54 +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-06-15 04:55:33 +00:00
|
|
|
- mvn --quiet verify -P samples.shippable
|
2018-05-24 14:18:35 +00:00
|
|
|
# generate all petstore samples (client, servers, doc)
|
|
|
|
- ./bin/run-all-petstore
|