Commit a1263c1a authored by zhaoxuanchao's avatar zhaoxuanchao
Browse files

Update .gitlab-ci.yml

parent dd33e4b1
stages:
- build
- test
build-code-job:
- deploy
before_script:
- echo "before_script"
precompiled:
stage: build
tags:
- build
script:
- echo "Check the ruby version, then build some Ruby project files:"
- ruby -v
- rake
test-code-job1:
stage: test
- echo "Hello precompiled"
# 测试环境
test-env:
stage: deploy
tags:
- build
environment:
name: development
script:
- echo "If the files are built successfully, test some files with one command:"
- rake test1
test-code-job2:
stage: test
- echo "Hello precompiled"
# 生产环境
prod-env:
stage: deploy
tags:
- build
environment:
name: production
script:
- echo "If the files are built successfully, test other files with a different command:"
- rake test2
- echo "Hello"
\ 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