2022-07-19 09:08:45 +00:00
|
|
|
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
|
|
|
|
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
|
|
|
|
#
|
2021-06-28 06:07:45 +00:00
|
|
|
# To contribute improvements to CI/CD templates, please follow the Development guide at:
|
|
|
|
# https://docs.gitlab.com/ee/development/cicd/templates.html
|
|
|
|
# This specific template is located at:
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Bash.gitlab-ci.yml
|
|
|
|
|
2021-07-22 06:08:43 +00:00
|
|
|
# See https://docs.gitlab.com/ee/ci/yaml/index.html for all available options
|
2017-03-08 23:16:47 +00:00
|
|
|
|
|
|
|
# you can delete this line if you're not using Docker
|
|
|
|
image: busybox:latest
|
|
|
|
|
|
|
|
before_script:
|
2017-09-07 09:25:06 +00:00
|
|
|
- echo "Before script section"
|
|
|
|
- echo "For example you might run an update here or install a build dependency"
|
|
|
|
- echo "Or perhaps you might print out some debugging details"
|
2019-03-07 13:57:16 +00:00
|
|
|
|
2017-03-08 23:16:47 +00:00
|
|
|
after_script:
|
|
|
|
- echo "After script section"
|
|
|
|
- echo "For example you might do some cleanup here"
|
2019-03-07 13:57:16 +00:00
|
|
|
|
2017-03-08 23:16:47 +00:00
|
|
|
build1:
|
2017-09-07 09:25:06 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- echo "Do your build here"
|
2019-03-07 13:57:16 +00:00
|
|
|
|
2017-03-08 23:16:47 +00:00
|
|
|
test1:
|
2017-09-07 09:25:06 +00:00
|
|
|
stage: test
|
2019-03-07 13:57:16 +00:00
|
|
|
script:
|
2017-09-07 09:25:06 +00:00
|
|
|
- echo "Do a test here"
|
|
|
|
- echo "For example run a test suite"
|
2019-03-07 13:57:16 +00:00
|
|
|
|
2017-03-08 23:16:47 +00:00
|
|
|
test2:
|
2017-09-07 09:25:06 +00:00
|
|
|
stage: test
|
2019-03-07 13:57:16 +00:00
|
|
|
script:
|
2017-09-07 09:25:06 +00:00
|
|
|
- echo "Do another parallel test here"
|
|
|
|
- echo "For example run a lint test"
|
2019-03-07 13:57:16 +00:00
|
|
|
|
2017-03-08 23:16:47 +00:00
|
|
|
deploy1:
|
2017-09-07 09:25:06 +00:00
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- echo "Do your deploy here"
|
2022-10-21 09:10:32 +00:00
|
|
|
environment: production
|