.gitlab-ci.yml 1.21 KB
Newer Older
Ron Rahaman's avatar
Ron Rahaman committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
stages:
  - build_libmesh_stage
  - configure_moon_stage
  - build_moon_stage
  - test_moon_stage

before_script:
  - . /opt/moose/environments/moose_profile

build_libmesh:
  stage: build_libmesh_stage
  script:
    - pwd
    - git clone -b master https://github.com/idaholab/moose.git
    - cd moose 
    - scripts/update_and_rebuild_libmesh.sh

configure_moon:
  stage: configure_moon_stage
  dependencies:
    - build_libmesh
  variables:
    GIT_STRATEGY: none
    MOOSE_DIR: "$CI_PROJECT_DIR/moose"
    LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed" 
  script:
    - ./bootstrap || echo
    - cd examples/integration_example/
    - ../../configure 

build_moon:
  stage: build_moon_stage
  dependencies:
    - configure_moon
  variables:
    GIT_STRATEGY: none
    MOOSE_DIR: "$CI_PROJECT_DIR/moose"
    LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed" 
  script:
    - cd examples/integration_example/
    - make -j8

test_moon:
  stage: test_moon_stage
  dependencies:
    - build_moon
  variables:
    GIT_STRATEGY: none
    MOOSE_DIR: "$CI_PROJECT_DIR/moose"
    LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed" 
  script:
    - cd examples/integration_example
    - ../../moon-opt -i coefficient_integration.i