Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.40 KiB
stages:
  - configure
  - build
  - test



config:debian:
  image: fperignon/hysop:debian
  stage: configure
  script: "sh ci/config.sh"
  artifacts:
    paths:
    - build/

build:debian:
  image: fperignon/hysop:debian
  stage: build
  script:
    - cd build
    - make
    - make install
    - cd ..
    - python -c 'import hysop'
    - cd build
    - echo $'y\n'|make uninstall
    - make clean
  dependencies:
    - config:debian
  artifacts:
    paths:
    - build/

test:debian:
  image: fperignon/hysop:debian
  stage: test
  script:
    - cd build
    - make
    - ctest -VV -I 2,2
    #- make test
  dependencies:
    - build:debian

config:ubuntu:
  image: fperignon/hysop:ubuntu
  stage: configure
  script: "sh ci/config.sh"
  artifacts:
    paths:
    - build/

build:ubuntu:
  image: fperignon/hysop:ubuntu
  stage: build
  script:
    - cd build
    - make
    - make install
    - cd ..
    - python -c 'import hysop'
    - cd build
    - echo $'y\n'|make uninstall
    - make clean
    - cd ..
    - rm -rf build
  dependencies:
    - config:ubuntu
  #artifacts:
  #  paths: