.gitlab-ci.yml 794 Bytes
Newer Older
1 2
stages:
  - test
3
  - style
4 5 6 7 8 9

py.test:
  stage: test
  script:
    - pipenv install --dev
    - pipenv run py.test
10 11 12
  except:
    - /^wip\/.*/
    - /^WIP\/.*/
13 14
  tags:
    - rapl
15

16 17 18 19 20 21

flake8:
  stage: style
  script:
    - pipenv install --dev
    - pipenv run flake8
22 23 24
  except:
    - /^wip\/.*/
    - /^WIP\/.*/
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


integration.test:
  stage: test
  script:
    - git clone https://xgitlab.cels.anl.gov/argo/argotest.git
    - cd argotest
    - nix-shell -A test --run "./argotk.hs helloworld" --arg nrm-src ../.
  artifacts:
    paths:
      - argotest/cmd_err.log
      - argotest/cmd_out.log
      - argotest/daemon_out.log
      - argotest/daemon_out.log
      - argotest/nrm.log
      - argotest/time.log
    expire_in: 1 week
  except:
    - /^wip\/.*/
    - /^WIP\/.*/
  tags:
    - integration