Skip to content

Gitlab sample testing CI workflow

Mihael Hategan edited this page Oct 28, 2022 · 1 revision
stages:
  - test

Test:
  stage: test
  parallel:
    matrix:
     # remove or edit to configure the set of sites to run on
      - HOST : ["mothra"]
  tags:
    - $HOST
  script:
    - apt-get update
    - apt-get install -y python3.8-venv
    - python3 -m venv venv
    - source venv/bin/activate
    - git clone https://github.com/ExaWorks/psij-python.git
    - cd psij-python/
    - pip install -r requirements-dev.txt
    - host="\"$HOST.hidden.uoregon.edu/g\""
    - sed -i 's/maintainer_email =/maintainer_email = [email protected]/g' testing.conf
    - sed -i "s/id = hostname/id = \"$HOST.hidden.uoregon.edu\"/g" testing.conf
    - sed -i "s/key = random/key = \"$SITE_KEY\"/g" testing.conf
    # uncomment below to enable minimal uploads
    # - sed -i "s/minimal_uploads = false/minimal_uploads = true/g" testing.conf
    - ./psij-ci-run
Clone this wiki locally