Skip to content
Snippets Groups Projects
Select Git revision
  • 0ed159e53fb49070ea008d7f3cc5311841bb067f
  • master default protected
  • ShadowFlicker
  • DirectionalNoise
  • anders_acc
  • neighbour_farms
  • RANSLUT
  • multi_lut_interp
  • simple_generic_ignore_warning
  • minimalistic
  • cj_add_eddy_viscosity_model
  • cj_add_lwfc_model
  • fix_wrong_circle_intersection_area
  • sophia_ci
  • ray
  • multi_mirror
  • jax
  • pud_update
  • installation_fix
  • connect-effective_ws
  • 125-missing-interpolation-type-argument
  • v2.6.12
  • v2.6.11
  • v2.6.10
  • v2.6.9
  • v2.6.8
  • v2.6.7
  • v2.6.6
  • v2.6.5
  • v2.6.4
  • v2.6.3
  • v2.6.2
  • v2.6.1
  • v2.6.0
  • v2.5.0
  • v2.4.1
  • v0.0.0.dev3
  • v2.4.0
  • v2.3.0
  • v2.2.0
  • v2.1.1
41 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 2.89 KiB
    image: dtuwindenergy/topfarm2:latest
    
    # ===== TEST PyWake debian=====
    test_PyWake:  # name the job what we like
      stage:  # build, test, deploy defined by default [2]
        test
      script:
      - pip install -e .
      - py.test
      tags:  # only runners with this tag can do the job [3]
      - python
    
      
    # ===== Check code style =====
    check_code_style:  # name the job what we like
      stage:  # build, test, deploy defined by default [2]
        test
      script:
      - pip install -e .
      - pycodestyle --ignore=E501,W504,E741 py_wake
      tags:  # only runners with this tag can do the job [3]
      - python
    
    # ===== TEST PyWake on Windows =====
    test_PyWake_windows:  # name the job what we like
      stage:  # build, test, deploy defined by default [2]
        test
      script:  # runs on windows machine due to tag below
      - source activate pyTopfarm
      - pytest --cov-report term-missing:skip-covered --cov=py_wake --cov-config .coveragerc
      tags:  # tag for shared runner on windows machine
      - ANMH_old
    
    # ===== build documentation =====
    pages:  # "pages" is a job specifically for GitLab pages [1]
      stage:  # build, test, deploy defined by default [2]
        deploy
      script:  # use sphinx to build docs, move to public page
      - pip install sphinx --upgrade
      - pip install nbsphinx --upgrade
      - pip install -e .
      - cd docs/validation_report
      - python generate_validation_figures.py
      - cd report
      - apt-get install -y texlive-latex-extra
      - pdflatex validation_report.tex
      - bibtex validation_report.aux
      - pdflatex validation_report.tex
      - pdflatex validation_report.tex
      - cd ../../
      - pwd
      - make html
      #- make latexpdf
      - cd ../; mv docs/build/html public/
      artifacts:  # required for GitLab pages [1]
        paths:
        - public
        #- docs/build/latex/PyWake.pdf
      only:  # only run for these branches
      - master
      - /^test_doc.*/ 
      tags:  # only runners with this tag can do the job [3]
      - python
    
    pypi_linux:
      stage:  
        deploy
      only:
        - tags
        - test_pypi