Commit a1263c1a authored by zhaoxuanchao's avatar zhaoxuanchao
Browse files

Update .gitlab-ci.yml

parent dd33e4b1
stages: stages:
- build - build
- test - deploy
before_script:
build-code-job: - echo "before_script"
precompiled:
stage: build stage: build
tags:
- build
script: script:
- echo "Check the ruby version, then build some Ruby project files:" - echo "Hello precompiled"
- ruby -v # 测试环境
- rake test-env:
stage: deploy
test-code-job1: tags:
stage: test - build
environment:
name: development
script: script:
- echo "If the files are built successfully, test some files with one command:" - echo "Hello precompiled"
- rake test1 # 生产环境
prod-env:
test-code-job2: stage: deploy
stage: test tags:
- build
environment:
name: production
script: script:
- echo "If the files are built successfully, test other files with a different command:" - echo "Hello"
- rake test2 \ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment