Skip to content
Snippets Groups Projects
Commit d04440e7 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Merge branch 'test_ci' into 'master'

CI with autotest/docs

See merge request !4
parents b1595def e1b832f2
No related branches found
No related tags found
1 merge request!4CI with autotest/docs
Pipeline #
image: nedadtu/pungi-ci:latest # use Neil Davis's pungi image from dockerhub
# ===== DEFINE DOCKER IMAGE =====
# 2018.05.03 dockerhub image generated using docker/Dockerfile_simple
image: rinkdtu/topfarm-ci:latest
# ===== TEST TOPFARM =====
test_topfarm: # name the job what we like
stage: # build, test, deploy defined by default [2]
test
script:
- cd tests; py.test --cov-report term-missing:skip-covered --cov=topfarm
only: # only run for these branches
- master
- test_ci
tags: # select which runners can do this job [3]
- 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
script: # use sphinx to build docs, move to public page
- cd docs; make html
- cd ../; mv docs/build/html public/
artifacts: # required for GitLab pages [1]
paths:
- public
......
[![pipeline status](https://gitlab.windenergy.dtu.dk/TOPFARM/TopFarm2/badges/master/pipeline.svg)](https://gitlab.windenergy.dtu.dk/TOPFARM/TopFarm2/commits/master)
[![coverage report](https://gitlab.windenergy.dtu.dk/TOPFARM/TopFarm2/badges/master/coverage.svg)](https://gitlab.windenergy.dtu.dk/TOPFARM/TopFarm2/commits/master)
\ No newline at end of file
# ==================================================================
# Creating a simple docker image for TOPFARM testing and docs
# ==================================================================
FROM continuumio/anaconda3:latest
MAINTAINER Jenni Rinker <rink@dtu.dk>
# get list of update linux files and install lib for matplotlib
# (anaconda3:5.0.0 image doesn't have the library)
# also install "make" because image doesn't have it either
RUN apt-get update && \
apt-get install make && \
apt-get install libgl1-mesa-glx -y
# use conda to update itself and install packages not in the
# anaconda3 image
RUN conda update -y conda &&\
conda install -y sphinx_rtd_theme && \
conda install -y pytest-cov && \
conda clean -y --all
# update pip then install openmdao (nocache to save space)
RUN pip install --upgrade pip &&\
pip install --no-cache-dir openmdao
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment