forked from Gitlink/forgeplus
FIX perfect devops languages formate
This commit is contained in:
parent
f6937d96f4
commit
0c92b571c5
|
@ -18,7 +18,8 @@ namespace :dev_ops_languages do
|
|||
[
|
||||
{
|
||||
name: "C",
|
||||
content: "kind: pipeline
|
||||
content: "
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -35,7 +36,8 @@ namespace :dev_ops_languages do
|
|||
},
|
||||
{
|
||||
name: "C++",
|
||||
content: "kind: pipeline
|
||||
content: "
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -52,7 +54,8 @@ namespace :dev_ops_languages do
|
|||
},
|
||||
{
|
||||
name: "Docker",
|
||||
content: "kind: pipeline
|
||||
content: "
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -75,7 +78,8 @@ namespace :dev_ops_languages do
|
|||
},
|
||||
{
|
||||
name: "Java",
|
||||
content: "kind: pipeline
|
||||
content: "
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -91,7 +95,8 @@ namespace :dev_ops_languages do
|
|||
},
|
||||
{
|
||||
name: "R",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -102,12 +107,13 @@ namespace :dev_ops_languages do
|
|||
- name: test
|
||||
image: r-base
|
||||
commands:
|
||||
- R -e 'install.packages(c('package1','package2'))'
|
||||
- R CMD build ."
|
||||
- R -e 'install.packages(c("package1","package2"))'
|
||||
- R CMD build .`
|
||||
},
|
||||
{
|
||||
name: "Ruby",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -119,11 +125,12 @@ namespace :dev_ops_languages do
|
|||
image: ruby
|
||||
commands:
|
||||
- bundle install --jobs=3 --retry=3
|
||||
- rake"
|
||||
- rake`
|
||||
},
|
||||
{
|
||||
name: "PHP",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -139,11 +146,12 @@ namespace :dev_ops_languages do
|
|||
- name: test
|
||||
image: php:7
|
||||
commands:
|
||||
- vendor/bin/phpunit --configuration config.xml"
|
||||
- vendor/bin/phpunit --configuration config.xml`
|
||||
},
|
||||
{
|
||||
name: "Python",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -155,11 +163,12 @@ namespace :dev_ops_languages do
|
|||
image: python
|
||||
commands:
|
||||
- pip install -r requirements.txt
|
||||
- pytest"
|
||||
- pytest`
|
||||
},
|
||||
{
|
||||
name: "MySQL",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -171,18 +180,19 @@ namespace :dev_ops_languages do
|
|||
image: mysql
|
||||
commands:
|
||||
- sleep 15
|
||||
- mysql -u root -h database --execute='SELECT VERSION();'
|
||||
- mysql -u root -h database --execute="SELECT VERSION();"
|
||||
|
||||
services:
|
||||
- name: database
|
||||
image: mysql
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||
MYSQL_DATABASE: test"
|
||||
MYSQL_DATABASE: test`
|
||||
},
|
||||
{
|
||||
name: "MongoDB",
|
||||
content: 'kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -199,11 +209,12 @@ namespace :dev_ops_languages do
|
|||
services:
|
||||
- name: mongo
|
||||
image: mongo:4
|
||||
command: [ --smallfiles ]'
|
||||
command: [ --smallfiles ]`
|
||||
},
|
||||
{
|
||||
name: "Clojure",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -214,11 +225,12 @@ namespace :dev_ops_languages do
|
|||
- name: test
|
||||
image: clojure
|
||||
commands:
|
||||
- lein test"
|
||||
- lein test`
|
||||
},
|
||||
{
|
||||
name: "CouchDB",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -234,11 +246,12 @@ namespace :dev_ops_languages do
|
|||
|
||||
services:
|
||||
- name: database
|
||||
image: couchdb:2.2"
|
||||
image: couchdb:2.2`
|
||||
},
|
||||
{
|
||||
name: "Crystal",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -250,11 +263,12 @@ namespace :dev_ops_languages do
|
|||
image: crystallang/crystal
|
||||
commands:
|
||||
- shards install
|
||||
- crystal spec.2"
|
||||
- crystal spec.2`
|
||||
},
|
||||
{
|
||||
name: "D",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -265,11 +279,12 @@ namespace :dev_ops_languages do
|
|||
- name: test
|
||||
image: dlanguage/dmd
|
||||
commands:
|
||||
- dub test"
|
||||
- dub test`
|
||||
},
|
||||
{
|
||||
name: "Dart",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -281,11 +296,12 @@ namespace :dev_ops_languages do
|
|||
image: google/dart
|
||||
commands:
|
||||
- pub get
|
||||
- pub run test"
|
||||
- pub run test`
|
||||
},
|
||||
{
|
||||
name: "Docker (dind)",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -312,11 +328,12 @@ namespace :dev_ops_languages do
|
|||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}"
|
||||
temp: {}`
|
||||
},
|
||||
{
|
||||
name: "Elasticsearch",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -333,11 +350,12 @@ namespace :dev_ops_languages do
|
|||
|
||||
services:
|
||||
- name: database
|
||||
image: elasticsearch:5-alpine"
|
||||
image: elasticsearch:5-alpine`
|
||||
},
|
||||
{
|
||||
name: "Elixir",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -351,11 +369,12 @@ namespace :dev_ops_languages do
|
|||
- mix local.rebar --force
|
||||
- mix local.hex --force
|
||||
- mix deps.get
|
||||
- mix test"
|
||||
- mix test`
|
||||
},
|
||||
{
|
||||
name: "Erlang",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -368,11 +387,12 @@ namespace :dev_ops_languages do
|
|||
commands:
|
||||
- rebar get-deps
|
||||
- rebar compile
|
||||
- rebar skip_deps=true eunit"
|
||||
- rebar skip_deps=true eunit`
|
||||
},
|
||||
{
|
||||
name: "20.Go (with Gopath)",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -388,11 +408,12 @@ namespace :dev_ops_languages do
|
|||
image: golang
|
||||
commands:
|
||||
- go get
|
||||
- go test"
|
||||
- go test`
|
||||
},
|
||||
{
|
||||
name: "21.Go (with Modules)",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -404,11 +425,12 @@ namespace :dev_ops_languages do
|
|||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
- go build"
|
||||
- go build`
|
||||
},
|
||||
{
|
||||
name: "Gradle",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -420,11 +442,12 @@ namespace :dev_ops_languages do
|
|||
image: gradle:jdk10
|
||||
commands:
|
||||
- gradle assemble
|
||||
- gradle check"
|
||||
- gradle check`
|
||||
},
|
||||
{
|
||||
name: "Groovy",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -436,11 +459,12 @@ namespace :dev_ops_languages do
|
|||
image: gradle:2.5-jdk8
|
||||
commands:
|
||||
- ./gradlew assemble
|
||||
- ./gradlew check"
|
||||
- ./gradlew check`
|
||||
},
|
||||
{
|
||||
name: "Haskell",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -454,11 +478,12 @@ namespace :dev_ops_languages do
|
|||
- cabal install --only-dependencies --enable-tests
|
||||
- cabal configure --enable-tests
|
||||
- cabal build
|
||||
- cabal test"
|
||||
- cabal test`
|
||||
},
|
||||
{
|
||||
name: "Haxe",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -470,11 +495,12 @@ namespace :dev_ops_languages do
|
|||
image: haxe
|
||||
commands:
|
||||
- haxelib install build.hxml
|
||||
- haxe build.hxml"
|
||||
- haxe build.hxml`
|
||||
},
|
||||
{
|
||||
name: "MariaDB",
|
||||
content: 'kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -492,12 +518,13 @@ namespace :dev_ops_languages do
|
|||
- name: database
|
||||
image: mariadb
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||
MYSQL_DATABASE: test'
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||
MYSQL_DATABASE: test`
|
||||
},
|
||||
{
|
||||
name: "Maven",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -509,11 +536,12 @@ namespace :dev_ops_languages do
|
|||
image: maven:3-jdk-10
|
||||
commands:
|
||||
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
- mvn test -B"
|
||||
- mvn test -B`
|
||||
},
|
||||
{
|
||||
name: "Memcached",
|
||||
content: 'kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -531,11 +559,12 @@ namespace :dev_ops_languages do
|
|||
services:
|
||||
- name: cache
|
||||
image: memcached:alpine
|
||||
command: [ -vv ]'
|
||||
command: [ -vv ]`
|
||||
},
|
||||
{
|
||||
name: "Nats",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -552,11 +581,12 @@ namespace :dev_ops_languages do
|
|||
|
||||
services:
|
||||
- name: nats
|
||||
image: nats:1.3.0"
|
||||
image: nats:1.3.0`
|
||||
},
|
||||
{
|
||||
name: "Node",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -568,11 +598,12 @@ namespace :dev_ops_languages do
|
|||
image: node
|
||||
commands:
|
||||
- npm install
|
||||
- npm test"
|
||||
- npm test`
|
||||
},
|
||||
{
|
||||
name: "Perl",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -585,11 +616,12 @@ namespace :dev_ops_languages do
|
|||
commands:
|
||||
- cpanm --quiet --installdeps --notest .
|
||||
- perl Build.PL
|
||||
- ./Build test"
|
||||
- ./Build test`
|
||||
},
|
||||
{
|
||||
name: "Postgres",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -607,11 +639,12 @@ namespace :dev_ops_languages do
|
|||
image: postgres:9-alpine
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_DB: test"
|
||||
POSTGRES_DB: test`
|
||||
},
|
||||
{
|
||||
name: "Redis",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -629,11 +662,12 @@ namespace :dev_ops_languages do
|
|||
|
||||
services:
|
||||
- name: redis
|
||||
image: redis"
|
||||
image: redis`
|
||||
},
|
||||
{
|
||||
name: "RethinkDB",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -645,16 +679,17 @@ namespace :dev_ops_languages do
|
|||
image: node:9
|
||||
commands:
|
||||
- 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
|
||||
image: rethinkdb:2
|
||||
command: [ rethinkdb, --bind, all ]"
|
||||
command: [ rethinkdb, --bind, all ]`
|
||||
},
|
||||
{
|
||||
name: "Rust",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -666,11 +701,12 @@ namespace :dev_ops_languages do
|
|||
image: rust:1.30
|
||||
commands:
|
||||
- cargo build --verbose --all
|
||||
- cargo test --verbose --all"
|
||||
- cargo test --verbose --all`
|
||||
},
|
||||
{
|
||||
name: "Swift",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -682,11 +718,12 @@ namespace :dev_ops_languages do
|
|||
image: swift:4
|
||||
commands:
|
||||
- swift build
|
||||
- swift test"
|
||||
- swift test`
|
||||
},
|
||||
{
|
||||
name: "Vault",
|
||||
content: "kind: pipeline
|
||||
content: `
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
|
@ -708,7 +745,7 @@ namespace :dev_ops_languages do
|
|||
- name: vault
|
||||
image: vault:1.0.0-beta2
|
||||
environment:
|
||||
VAULT_DEV_ROOT_TOKEN_ID: dummy"
|
||||
VAULT_DEV_ROOT_TOKEN_ID: dummy`
|
||||
}
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue