before_script:
  - "source ~gitlab-runner/cicd_support/cicd_support.shinc" 
  - ./cicd_testing/do-build.sh 

after_script:
  - "source ~gitlab-runner/cicd_support/cicd_support.shinc" 

stages:
  - clean
  - build
  - test
  - deploy


#
# Cleaning
#
.do-nightly-clean: &do-nightly-clean
  stage: clean
  script:
    - ./cicd_testing/do-clean.sh 

do-nightly-clean-ubuntu18:
  <<: *do-nightly-clean
  tags:
    - ubuntu18



#
# Building
#

.do-build: &do-build
  stage: build
  script:
    - echo Successfully built

do-build-ubuntu18:
  <<: *do-build
  tags:
    - ubuntu18
