Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.91 KiB
Newer Older
before_script:
  - "source ~gitlab-runner/cicd_support/cicd_support.shinc" 

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

stages:
  - clean
  - build
  - test
Jason Hiser's avatar
Jason Hiser committed
  - 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

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

Jason Hiser's avatar
Jason Hiser committed
do-nightly-clean-centos75:
  <<: *do-nightly-clean
  tags:
    - centos75


#
# Building
#

.do-build: &do-build
  stage: build
  script:
    - ./cicd_testing/do-build.sh 

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

do-build-ubuntu16:
  <<: *do-build
  tags:
    - ubuntu16

Jason Hiser's avatar
Jason Hiser committed
do-build-centos75:
  <<: *do-build
  tags:
    - centos75


Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
# test_cmds.sh zafl
#
.basic-pgms-zafl: &basic-pgms-zafl
  stage: test
  script:
    - ./cicd_testing/basic-pgms-zafl.sh

basic-pgms-zafl-ubuntu18:
  <<: *basic-pgms-zafl
  tags:
    - ubuntu18

basic-pgms-zafl-ubuntu16:
  <<: *basic-pgms-zafl
  tags:
    - ubuntu16

basic-pgms-zafl-centos75:
  <<: *basic-pgms-zafl
  tags:
    - centos75
Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
# test zafl with afl
Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
.afl-zafl: &afl-zafl
  stage: test
  script:
Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
    - ./cicd_testing/afl-zafl.sh
Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
afl-zafl-ubuntu18:
  <<: *afl-zafl
Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
afl-zafl-ubuntu16:
  <<: *afl-zafl
Anh Nguyen-Tuong's avatar
Anh Nguyen-Tuong committed
afl-zafl-centos75:
  <<: *afl-zafl
Jason Hiser's avatar
Jason Hiser committed
  tags:
    - centos75

#
# test installer
#
.install-zafl: &install-zafl
  stage: install
  script:
    - ./cicd_testing/installer.sh

install-zafl-ubuntu18:
  <<: *install-zafl
  tags:
    - ubuntu18

install-zafl-ubuntu16:
  <<: *install-zafl
  tags:
    - ubuntu16

install-zafl-centos75:
  <<: *install-zafl
  tags:
    - centos75

Jason Hiser's avatar
Jason Hiser committed

#
# Deploy a docker image to gitlab.
#
.deploy-zafl: &deploy-zafl
  stage: deploy
  script:
    - ./cicd_testing/deploy.sh

deploy-zafl-ubuntu18:
  <<: *deploy-zafl
  tags:
    - ubuntu18