forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
shippable.yml
54 lines (51 loc) · 2.53 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: java
jdk:
- openjdk10
build:
cache: true
cache_dir_list:
- $HOME/.m2
- $HOME/.stack
- $SHIPPABLE_REPO_DIR/samples/client/petstore/elixir/deps
ci:
# fix shippable apt-get errors
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23E7166788B63E1E 6A030B21BA07F4FB 4B8EC3BAABDC4346 EB3E94ADBE1229CF 960B2B2623A0BD5D 6B05F25D762E3157
- rm /etc/apt/sources.list.d/jonathonf-ubuntu-backports-xenial.list
#
- java -version
- mvn --no-snapshot-updates --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.1/binary-for-linux-64-bit.gz | zcat > /usr/local/bin/elm
- chmod +x /usr/local/bin/elm
# 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 --no-snapshot-updates --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
# test maven plugin
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
# test gradle plugin
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk)
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)