Commit df95b2c5 authored by Richard Zamora's avatar Richard Zamora
Browse files

testing simple ci, more complex #1

parent 969325bf
Loading
Loading
Loading
Loading
+27 −2
Original line number Diff line number Diff line
image: ubuntu:latest

test:
  script:

  before_script:

    # Install Linux Packages:
    - apt-get update
    - hostname
    - pwd
    - export HOME=/builds/exaalt/
    - env
    - apt-get --yes --force-yes install gfortran libblas-dev liblapack-dev
    - apt-get --yes --force-yes install cmake python gcc cmake-data g++ git wget
    - apt-get --yes --force-yes install pkg-config python-numpy python3-numpy libopenmpi-dev

    # Build LATTE:
    - cd /builds/exaalt/
    - git clone https://github.com/lanl/LATTE.git
    - cd LATTE
    - cp ./makefiles/makefile.CHOICES.gfort.lapack.lmp makefile.CHOICES
    - make

    # Build LAMMPS:
    - cd /builds/exaalt/lammps/lib/latte/
    - cp Makefile.lammps.gfortran Makefile.lammps
    - cd /builds/exaalt/lammps/src/
    - make yes-latte
    - make yes-molecule
    - make serial

  script:

    # Test LAMMPS-LATTE Example:
    - cd /builds/exaalt/lammps/examples/latte/
    - ../../src/lmp_serial -in in.latte.water