.gitlab-ci.yml 890 Bytes
Newer Older
David Trudgian's avatar
David Trudgian committed
1 2
# Run our tests against a specific version of astrocyte
before_script:
PLian's avatar
PLian committed
3
  - module load astrocyte/0.4.0
David Trudgian's avatar
David Trudgian committed
4

David Trudgian's avatar
David Trudgian committed
5 6 7 8 9

stages:
    - check
    - test

David Trudgian's avatar
David Trudgian committed
10
# This performs validation of the astrocyte_pkg.yml file
David Trudgian's avatar
David Trudgian committed
11 12
astrocyte_check:
  stage: check
David Trudgian's avatar
David Trudgian committed
13 14 15 16 17
  script:
  - astrocyte_cli check "$CI_PROJECT_DIR"

# This runs the workflow with test data and does a simple
# check for the expected output file
David Trudgian's avatar
David Trudgian committed
18 19
astrocyte_test:
  stage: test
David Trudgian's avatar
David Trudgian committed
20 21 22 23 24 25
  script:
  - astrocyte_cli test "$CI_PROJECT_DIR"
  - test -s "$CI_PROJECT_DIR/workflow/output/mobydick.txt.uppercase.tolines.wordcount"

# This verifies we can install the shiny vizapp dependencies
# and start the vizapp running.
David Trudgian's avatar
David Trudgian committed
26 27
astrocyte_shiny:
  stage: test
David Trudgian's avatar
David Trudgian committed
28 29 30 31 32 33 34 35 36
  script:
  - astrocyte_cli shiny-prepare "$CI_PROJECT_DIR"
  - 'timeout 10 astrocyte_cli shiny "$CI_PROJECT_DIR" &'
  - 'SHINY_PID=$!'
  - sleep 5
  - unset http_proxy
  - unset all_proxy
  - wget "http://127.0.0.1:8123"