Skip to content

Commit

Permalink
ci(drone): use parallel pipelines (OpenAPITools#10423)
Browse files Browse the repository at this point in the history
  • Loading branch information
PiDelport authored Sep 21, 2021
1 parent 1247e77 commit 5c45465
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CI/.drone.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
kind: pipeline
type: docker
name: default
steps:
# test Java 11 HTTP client
Expand All @@ -15,11 +16,23 @@ steps:
- /bin/bash bin/utils/test-fake-petstore-for-all.sh
# generate test scripts
- /bin/bash bin/tests/run-all-test

---
kind: pipeline
type: docker
name: default
steps:
# test nim client
- name: nim-client-test
image: nimlang/nim
commands:
- (cd samples/client/petstore/nim/ && nim c sample_client.nim)

---
kind: pipeline
type: docker
name: default
steps:
# test protobuf schema generator
- name: protobuf-schema-test
image: nanoservice/protobuf-go
Expand All @@ -29,12 +42,24 @@ steps:
- cd samples/config/petstore/protobuf-schema
- protoc --go_out=/var/tmp/go/ services/*
- protoc --go_out=/var/tmp/go/ models/*

---
kind: pipeline
type: docker
name: default
steps:
# test aspnetcore 3.x
- name: aspnetcore-test
image: mcr.microsoft.com/dotnet/core/sdk:3.1
commands:
- (cd samples/server/petstore/aspnetcore-3.1/ && /bin/sh build.sh)
- (cd samples/server/petstore/aspnetcore-3.0/ && /bin/sh build.sh)

---
kind: pipeline
type: docker
name: default
steps:
# test ocaml petstore client
- name: ocaml-test
image: ocaml/opam2:4.07
Expand All @@ -46,11 +71,23 @@ steps:
- eval $(opam env)
- sudo chmod -R 777 .
- dune build --build-dir=./_build

---
kind: pipeline
type: docker
name: default
steps:
# test haskell client
- name: haskell-client-test
image: haskell:8.10.4
commands:
- (cd samples/client/petstore/haskell-http-client/ && stack --allow-different-user --install-ghc --no-haddock-deps haddock --fast && stack --allow-different-user test --fast)

---
kind: pipeline
type: docker
name: default
steps:
# test erlang client and server
- name: erlang
image: erlang:alpine
Expand Down

0 comments on commit 5c45465

Please sign in to comment.