Skip to content

Latest commit

 

History

History
73 lines (42 loc) · 1.64 KB

running_in_cloud.rst

File metadata and controls

73 lines (42 loc) · 1.64 KB

QA Repository Setup

Running in Cloud

To run the qa-repository in the cloud set up travis-ci with the repository and create a travis.yml file and .sh file in .travis to the necessary simulators and run the qa-toolbox.

  1. Write .sh script for travis to run

    1. Clone qa-toolbox

    2. Install simulators

    3. Clone the directory created for the test with the configuration file, options file, and input decks.

    4. Move back to the home directory and purge python2.7 and install python3

      cd ../../..
      sudo apt-get update
      sudo apt purge python2.7-minimal
      sudo apt-get -y install python3 python3-h5py python3-matplotlib
      sudo apt-get -y install python3-tk python3-scipy
    5. Create file called simulators.sim within qa-toolbox that sets paths to simulator executables, for example:

      echo '[simulators]
      python = python3
      pflotran =' $pwd'/pflotran/src/pflotran/pflotran' >$PWD/qa-toolbox/simulators.sim
    1. Create file called config_files.txt within qa-toolbox that sets paths to the configuration file you wish to run

      echo '../qa-test/test.cfg'>$PWD/qa-toolbox/config_files.txt
    2. Run the makefile created earlier in the qa-repository.

      make all
  2. Create a .travis.yml document

    1. Set ubuntu version to Bionic

      dist: Bionic
      
    2. Set compiler to gcc

      compiler:
        - gcc
      
    3. Addon package cmake

      addons:
        apt:
          packages:
            - cmake
      
    4. Set script to run .sh file in /.travis