-
Jennifer Rinker authoredJennifer Rinker authored
.gitlab-ci.yml 1.25 KiB
image: rinkdtu/topfarm-ci:firsttry # use Neil Davis's pungi image from dockerhub
# ===== TEST TOPFARM =====
test_topfarm: # name the job what we like
stage: # build, test, deploy defined by default [2]
test
script:
#- REPO_URL="git@${SITE_URL}:WAsP/waspy.git"
#- REPO_DIR=thirdparty/waspy
#- rm -fr $REPO_DIR
#- git clone $REPO_URL $REPO_DIR
#- cd $REPO_DIR
#- python setup.py install
#- cd -
# - python setup.py install
- cd tests; py.test --cov-report term-missing:skip-covered --cov=topfarm
only: # only run for these branches
- master
- test_ci
tags:
- python
# ===== BUILD DOCS AND PUSH TO PUBLIC WEBSITE =====
pages: # "pages" is a job specifically for GitLab pages [1]
stage: # build, test, deploy defined by default [2]
deploy
script:
- cd docs; make html # use sphinx to build docs
- cd ../; mv docs/build/html public/ # move build to public page
artifacts: # required for GitLab pages [1]
paths:
- public
only: # only run for these branches
- master
- test_ci
tags: # select which runners can do this job [3]
- python
# [1] GitLab page: https://docs.gitlab.com/ee/ci/yaml/#pages
# [2] CI stages: https://docs.gitlab.com/ee/ci/yaml/#stages
# [3] Tags: https://docs.gitlab.com/ee/ci/yaml/#tags