.gitlab-ci.yml 460 Bytes
Newer Older
zhaoxuanchao's avatar
zhaoxuanchao committed
1 2 3
stages:
  - build
  - test
zhaoxuanchao's avatar
zhaoxuanchao committed
4

zhaoxuanchao's avatar
zhaoxuanchao committed
5
build-code-job:
zhaoxuanchao's avatar
zhaoxuanchao committed
6 7
  stage: build
  script:
zhaoxuanchao's avatar
zhaoxuanchao committed
8 9 10 11 12 13 14 15 16
    - echo "Check the ruby version, then build some Ruby project files:"
    - ruby -v
    - rake

test-code-job1:
  stage: test
  script:
    - echo "If the files are built successfully, test some files with one command:"
    - rake test1
zhaoxuanchao's avatar
zhaoxuanchao committed
17

zhaoxuanchao's avatar
zhaoxuanchao committed
18 19
test-code-job2:
  stage: test
zhaoxuanchao's avatar
zhaoxuanchao committed
20
  script:
zhaoxuanchao's avatar
zhaoxuanchao committed
21 22
    - echo "If the files are built successfully, test other files with a different command:"
    - rake test2