FIX code bug

This commit is contained in:
Jasder 2020-10-21 18:12:58 +08:00
parent 0c92b571c5
commit 84854e5c0c
1 changed files with 72 additions and 72 deletions

View File

@ -95,7 +95,7 @@ steps:
}, },
{ {
name: "R", name: "R",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -107,12 +107,12 @@ 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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -125,11 +125,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -146,11 +146,11 @@ steps:
- 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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -163,11 +163,11 @@ steps:
image: python image: python
commands: commands:
- pip install -r requirements.txt - pip install -r requirements.txt
- pytest` - pytest"
}, },
{ {
name: "MySQL", name: "MySQL",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -180,18 +180,18 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -204,16 +204,16 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -225,11 +225,11 @@ steps:
- name: test - name: test
image: clojure image: clojure
commands: commands:
- lein test` - lein test"
}, },
{ {
name: "CouchDB", name: "CouchDB",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -246,11 +246,11 @@ steps:
services: services:
- name: database - name: database
image: couchdb:2.2` image: couchdb:2.2"
}, },
{ {
name: "Crystal", name: "Crystal",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -263,11 +263,11 @@ steps:
image: crystallang/crystal image: crystallang/crystal
commands: commands:
- shards install - shards install
- crystal spec.2` - crystal spec.2"
}, },
{ {
name: "D", name: "D",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -279,11 +279,11 @@ steps:
- name: test - name: test
image: dlanguage/dmd image: dlanguage/dmd
commands: commands:
- dub test` - dub test"
}, },
{ {
name: "Dart", name: "Dart",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -296,11 +296,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -328,11 +328,11 @@ services:
volumes: volumes:
- name: dockersock - name: dockersock
temp: {}` temp: {}"
}, },
{ {
name: "Elasticsearch", name: "Elasticsearch",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -350,11 +350,11 @@ steps:
services: services:
- name: database - name: database
image: elasticsearch:5-alpine` image: elasticsearch:5-alpine"
}, },
{ {
name: "Elixir", name: "Elixir",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -369,11 +369,11 @@ steps:
- 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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -387,11 +387,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -408,11 +408,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -425,11 +425,11 @@ steps:
image: golang image: golang
commands: commands:
- go test - go test
- go build` - go build"
}, },
{ {
name: "Gradle", name: "Gradle",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -442,11 +442,11 @@ steps:
image: gradle:jdk10 image: gradle:jdk10
commands: commands:
- gradle assemble - gradle assemble
- gradle check` - gradle check"
}, },
{ {
name: "Groovy", name: "Groovy",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -459,11 +459,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -478,11 +478,11 @@ steps:
- 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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -495,11 +495,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -512,18 +512,18 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -536,11 +536,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -554,16 +554,16 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -581,11 +581,11 @@ steps:
services: services:
- name: nats - name: nats
image: nats:1.3.0` image: nats:1.3.0"
}, },
{ {
name: "Node", name: "Node",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -598,11 +598,11 @@ steps:
image: node image: node
commands: commands:
- npm install - npm install
- npm test` - npm test"
}, },
{ {
name: "Perl", name: "Perl",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -616,11 +616,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -639,11 +639,11 @@ services:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -662,11 +662,11 @@ steps:
services: services:
- name: redis - name: redis
image: redis` image: redis"
}, },
{ {
name: "RethinkDB", name: "RethinkDB",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -679,16 +679,16 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -701,11 +701,11 @@ steps:
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: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -718,11 +718,11 @@ steps:
image: swift:4 image: swift:4
commands: commands:
- swift build - swift build
- swift test` - swift test"
}, },
{ {
name: "Vault", name: "Vault",
content: ` content: "
kind: pipeline kind: pipeline
name: default name: default
@ -745,7 +745,7 @@ 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