FIX perfect devops languages formate
This commit is contained in:
parent
f6937d96f4
commit
0c92b571c5
|
@ -18,15 +18,16 @@ namespace :dev_ops_languages do
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
name: "C",
|
name: "C",
|
||||||
content: "kind: pipeline
|
content: "
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: gcc
|
image: gcc
|
||||||
commands:
|
commands:
|
||||||
- ./configure
|
- ./configure
|
||||||
|
@ -35,15 +36,16 @@ namespace :dev_ops_languages do
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "C++",
|
name: "C++",
|
||||||
content: "kind: pipeline
|
content: "
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: gcc
|
image: gcc
|
||||||
commands:
|
commands:
|
||||||
- ./configure
|
- ./configure
|
||||||
|
@ -52,15 +54,16 @@ namespace :dev_ops_languages do
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Docker",
|
name: "Docker",
|
||||||
content: "kind: pipeline
|
content: "
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
@ -68,22 +71,23 @@ namespace :dev_ops_languages do
|
||||||
commands:
|
commands:
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock"
|
path: /var/run/docker.sock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Java",
|
name: "Java",
|
||||||
content: "kind: pipeline
|
content: "
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: maven:3-jdk-10
|
image: maven:3-jdk-10
|
||||||
commands:
|
commands:
|
||||||
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
|
@ -91,209 +95,221 @@ namespace :dev_ops_languages do
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "R",
|
name: "R",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: r-base
|
image: r-base
|
||||||
commands:
|
commands:
|
||||||
- R -e 'install.packages(c('package1','package2'))'
|
- R -e 'install.packages(c("package1","package2"))'
|
||||||
- R CMD build ."
|
- R CMD build .`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Ruby",
|
name: "Ruby",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: ruby
|
image: ruby
|
||||||
commands:
|
commands:
|
||||||
- bundle install --jobs=3 --retry=3
|
- bundle install --jobs=3 --retry=3
|
||||||
- rake"
|
- rake`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "PHP",
|
name: "PHP",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install
|
- name: install
|
||||||
image: composer
|
image: composer
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- composer install
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: php:7
|
image: php:7
|
||||||
commands:
|
commands:
|
||||||
- vendor/bin/phpunit --configuration config.xml"
|
- vendor/bin/phpunit --configuration config.xml`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Python",
|
name: "Python",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pytest"
|
- pytest`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "MySQL",
|
name: "MySQL",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: mysql
|
image: mysql
|
||||||
commands:
|
commands:
|
||||||
- sleep 15
|
- sleep 15
|
||||||
- mysql -u root -h database --execute='SELECT VERSION();'
|
- mysql -u root -h database --execute="SELECT VERSION();"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
image: mysql
|
image: mysql
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||||
MYSQL_DATABASE: test"
|
MYSQL_DATABASE: test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "MongoDB",
|
name: "MongoDB",
|
||||||
content: 'kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ping
|
- name: ping
|
||||||
image: mongo:4
|
image: mongo:4
|
||||||
commands:
|
commands:
|
||||||
- sleep 5
|
- sleep 5
|
||||||
- mongo --host mongo --eval "db.version()"
|
- mongo --host mongo --eval "db.version()"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: mongo
|
- name: mongo
|
||||||
image: mongo:4
|
image: mongo:4
|
||||||
command: [ --smallfiles ]'
|
command: [ --smallfiles ]`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Clojure",
|
name: "Clojure",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: clojure
|
image: clojure
|
||||||
commands:
|
commands:
|
||||||
- lein test"
|
- lein test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "CouchDB",
|
name: "CouchDB",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: couchdb:2.2
|
image: couchdb:2.2
|
||||||
commands:
|
commands:
|
||||||
- sleep 15
|
- sleep 15
|
||||||
- curl http://database:5984
|
- curl http://database:5984
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
image: couchdb:2.2"
|
image: couchdb:2.2`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Crystal",
|
name: "Crystal",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: crystallang/crystal
|
image: crystallang/crystal
|
||||||
commands:
|
commands:
|
||||||
- shards install
|
- shards install
|
||||||
- crystal spec.2"
|
- crystal spec.2`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "D",
|
name: "D",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: dlanguage/dmd
|
image: dlanguage/dmd
|
||||||
commands:
|
commands:
|
||||||
- dub test"
|
- dub test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Dart",
|
name: "Dart",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: google/dart
|
image: google/dart
|
||||||
commands:
|
commands:
|
||||||
- pub get
|
- pub get
|
||||||
- pub run test"
|
- pub run test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Docker (dind)",
|
name: "Docker (dind)",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
@ -302,324 +318,341 @@ namespace :dev_ops_languages do
|
||||||
- sleep 5 # give docker enough time to start
|
- sleep 5 # give docker enough time to start
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}"
|
temp: {}`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Elasticsearch",
|
name: "Elasticsearch",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: alpine:3.8
|
image: alpine:3.8
|
||||||
commands:
|
commands:
|
||||||
- apk add curl
|
- apk add curl
|
||||||
- sleep 45
|
- sleep 45
|
||||||
- curl http://database:9200
|
- curl http://database:9200
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
image: elasticsearch:5-alpine"
|
image: elasticsearch:5-alpine`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Elixir",
|
name: "Elixir",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: elixir:1.5
|
image: elixir:1.5
|
||||||
commands:
|
commands:
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
- mix test"
|
- mix test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Erlang",
|
name: "Erlang",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: erlang:21
|
image: erlang:21
|
||||||
commands:
|
commands:
|
||||||
- rebar get-deps
|
- rebar get-deps
|
||||||
- rebar compile
|
- rebar compile
|
||||||
- rebar skip_deps=true eunit"
|
- rebar skip_deps=true eunit`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "20.Go (with Gopath)",
|
name: "20.Go (with Gopath)",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
path: src/hello-world
|
path: src/hello-world
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go test"
|
- go test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "21.Go (with Modules)",
|
name: "21.Go (with Modules)",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go test
|
||||||
- go build"
|
- go build`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Gradle",
|
name: "Gradle",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: gradle:jdk10
|
image: gradle:jdk10
|
||||||
commands:
|
commands:
|
||||||
- gradle assemble
|
- gradle assemble
|
||||||
- gradle check"
|
- gradle check`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Groovy",
|
name: "Groovy",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: gradle:2.5-jdk8
|
image: gradle:2.5-jdk8
|
||||||
commands:
|
commands:
|
||||||
- ./gradlew assemble
|
- ./gradlew assemble
|
||||||
- ./gradlew check"
|
- ./gradlew check`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Haskell",
|
name: "Haskell",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: haskell
|
image: haskell
|
||||||
commands:
|
commands:
|
||||||
- cabal install --only-dependencies --enable-tests
|
- cabal install --only-dependencies --enable-tests
|
||||||
- cabal configure --enable-tests
|
- cabal configure --enable-tests
|
||||||
- cabal build
|
- cabal build
|
||||||
- cabal test"
|
- cabal test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Haxe",
|
name: "Haxe",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: haxe
|
image: haxe
|
||||||
commands:
|
commands:
|
||||||
- haxelib install build.hxml
|
- haxelib install build.hxml
|
||||||
- haxe build.hxml"
|
- haxe build.hxml`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "MariaDB",
|
name: "MariaDB",
|
||||||
content: 'kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: mariadb
|
image: mariadb
|
||||||
commands:
|
commands:
|
||||||
- sleep 15
|
- sleep 15
|
||||||
- mysql -u root -h database --execute="SELECT VERSION();"
|
- mysql -u root -h database --execute="SELECT VERSION();"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
image: mariadb
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||||
MYSQL_DATABASE: test'
|
MYSQL_DATABASE: test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Maven",
|
name: "Maven",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: maven:3-jdk-10
|
image: maven:3-jdk-10
|
||||||
commands:
|
commands:
|
||||||
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
- mvn test -B"
|
- mvn test -B`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Memcached",
|
name: "Memcached",
|
||||||
content: 'kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
commands:
|
commands:
|
||||||
- apt-get update -qq
|
- apt-get update -qq
|
||||||
- apt-get install -y -qq telnet > /dev/null
|
- apt-get install -y -qq telnet > /dev/null
|
||||||
- (sleep 1; echo "stats"; sleep 2; echo "quit";) | telnet cache 11211 || true
|
- (sleep 1; echo "stats"; sleep 2; echo "quit";) | telnet cache 11211 || true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: cache
|
- name: cache
|
||||||
image: memcached:alpine
|
image: memcached:alpine
|
||||||
command: [ -vv ]'
|
command: [ -vv ]`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Nats",
|
name: "Nats",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: ruby:2
|
image: ruby:2
|
||||||
commands:
|
commands:
|
||||||
- gem install nats
|
- gem install nats
|
||||||
- nats-pub -s tcp://nats:4222 greeting 'hello'
|
- nats-pub -s tcp://nats:4222 greeting 'hello'
|
||||||
- nats-pub -s tcp://nats:4222 greeting 'world'
|
- nats-pub -s tcp://nats:4222 greeting 'world'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: nats
|
- name: nats
|
||||||
image: nats:1.3.0"
|
image: nats:1.3.0`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Node",
|
name: "Node",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm test"
|
- npm test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Perl",
|
name: "Perl",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: perl
|
image: perl
|
||||||
commands:
|
commands:
|
||||||
- cpanm --quiet --installdeps --notest .
|
- cpanm --quiet --installdeps --notest .
|
||||||
- perl Build.PL
|
- perl Build.PL
|
||||||
- ./Build test"
|
- ./Build test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Postgres",
|
name: "Postgres",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: postgres:9-alpine
|
image: postgres:9-alpine
|
||||||
commands:
|
commands:
|
||||||
- psql -U postgres -d test -h database
|
- psql -U postgres -d test -h database
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
image: postgres:9-alpine
|
image: postgres:9-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_DB: test"
|
POSTGRES_DB: test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Redis",
|
name: "Redis",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: redis
|
image: redis
|
||||||
commands:
|
commands:
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
@ -627,74 +660,78 @@ namespace :dev_ops_languages do
|
||||||
- redis-cli -h redis set FOO bar
|
- redis-cli -h redis set FOO bar
|
||||||
- redis-cli -h redis get FOO
|
- redis-cli -h redis get FOO
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis"
|
image: redis`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "RethinkDB",
|
name: "RethinkDB",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: node:9
|
image: node:9
|
||||||
commands:
|
commands:
|
||||||
- npm install -s -g recli
|
- npm install -s -g recli
|
||||||
- recli -h database -j" + 'r.db("rethinkdb").table("stats")' +
|
- recli -h database -j 'r.db("rethinkdb").table("stats")'
|
||||||
|
|
||||||
"services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
image: rethinkdb:2
|
image: rethinkdb:2
|
||||||
command: [ rethinkdb, --bind, all ]"
|
command: [ rethinkdb, --bind, all ]`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Rust",
|
name: "Rust",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1.30
|
image: rust:1.30
|
||||||
commands:
|
commands:
|
||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all"
|
- cargo test --verbose --all`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Swift",
|
name: "Swift",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: swift:4
|
image: swift:4
|
||||||
commands:
|
commands:
|
||||||
- swift build
|
- swift build
|
||||||
- swift test"
|
- swift test`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Vault",
|
name: "Vault",
|
||||||
content: "kind: pipeline
|
content: `
|
||||||
name: default
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: vault:1.0.0-beta2
|
image: vault:1.0.0-beta2
|
||||||
environment:
|
environment:
|
||||||
VAULT_ADDR: http://vault:8200
|
VAULT_ADDR: http://vault:8200
|
||||||
|
@ -704,11 +741,11 @@ namespace :dev_ops_languages do
|
||||||
- vault kv put secret/my-secret my-value=s3cr3t
|
- vault kv put secret/my-secret my-value=s3cr3t
|
||||||
- vault kv get secret/my-secret
|
- vault kv get secret/my-secret
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: vault
|
- name: vault
|
||||||
image: vault:1.0.0-beta2
|
image: vault:1.0.0-beta2
|
||||||
environment:
|
environment:
|
||||||
VAULT_DEV_ROOT_TOKEN_ID: dummy"
|
VAULT_DEV_ROOT_TOKEN_ID: dummy`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue