<commit_before>language: c
sudo: required
stages:
  - compile
  - test

cache:
  directories:
    - .cachedir
    
.t1: &compile-template
  script:
    - ./travis/build_env.sh
    - ./travis/config_nwchem.sh; 
    - ./travis/compile_nwchem.sh
.t11: &ompi-template
  before_script:
    - export MPI_IMPL="openmpi"
.t12: &mpich-template
  before_script:
    - export MPI_IMPL="mpich"

.t1o: &compile-template-ompi
  <<: *ompi-template
  <<: *compile-template
.t1m: &compile-template-mpich
  <<: *mpich-template
  <<: *compile-template

.t1osx: &compile-template-ompi-osx
    <<: *compile-template-ompi
    os: osx
    arch: amd64
.t1x86: &compile-template-ompi-x86
    <<: *compile-template-ompi
    os: linux
    arch: amd64
.t1m86: &compile-template-mpich-x86
    <<: *compile-template-mpich
    os: linux
    arch: amd64
.t1arm: &compile-template-mpich-arm
    <<: *compile-template-mpich
    os: linux
    arch: arm64
  
.t2: &qatest-template
  script:
    - ./travis/build_env.sh
    -  source ./travis/nwchem.bashrc
    - ./travis/run_qas.sh

.t2o: &qatest-template-ompi
  <<: *ompi-template
  <<: *qatest-template
.t2m: &qatest-template-mpich
  <<: *mpich-template
  <<: *qatest-template

.t3osx: &qatest-template-ompi-osx
    <<: *qatest-template-ompi
    os: osx
    arch: amd64
.t3x86: &qatest-template-ompi-x86
    <<: *qatest-template-ompi
    os: linux
    arch: amd64
.t3m86: &qatest-template-mpich-x86
    <<: *qatest-template-mpich
    os: linux
    arch: amd64
.t3arm: &qatest-template-mpich-arm
    <<: *qatest-template-mpich
    os: linux
    arch: arm64

jobs:
  include:
    - stage: compile
      <<: *compile-template-ompi-x86
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: compile
      <<: *compile-template-ompi-x86
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: compile
      <<: *compile-template-mpich-x86
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: compile
      <<: *compile-template-mpich-x86
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT USE_OPENMP=1
    - stage: compile
      <<: *compile-template-mpich-x86
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=SOCKETS
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES="nwdft solvation driver python" ARMCI_NETWORK=MPI-PT 
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: compile
      <<: *compile-template-mpich-arm
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PT
    - stage: compile
      <<: *compile-template-mpich-arm
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
    - stage: test
      <<: *qatest-template-ompi-x86
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: test
      <<: *qatest-template-ompi-x86
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: test
      <<: *qatest-template-mpich-x86
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: test
      <<: *qatest-template-mpich-x86
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT USE_OPENMP=1
    - stage: test
      <<: *qatest-template-mpich-x86
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=SOCKETS
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES="nwdft solvation driver python" ARMCI_NETWORK=MPI-PT 
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: test
      <<: *qatest-template-mpich-arm
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PT
    - stage: test
      <<: *qatest-template-mpich-arm
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
  exclude:
    - os: osx
      arch: arm64
  allow_failures:
    - os: linux
      arch: arm64
    - os: osx
      arch: amd64
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - os: linux
      arch: amd64
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - os: osx
      arch: amd64
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - os: osx
      arch: amd64
      env: NWCHEM_MODULES="nwdft solvation driver python" ARMCI_NETWORK=MPI-PT 

compiler:
  - gcc
dist: bionic
osx_image: xcode11.3
git:
  depth: 32


after_failure:
        - ./travis/check_failures.sh<commit_msg>change nwchem_modules for osx python task<commit_after>language: c
sudo: required
stages:
  - compile
  - test

cache:
  directories:
    - .cachedir
    
.t1: &compile-template
  script:
    - ./travis/build_env.sh
    - ./travis/config_nwchem.sh; 
    - ./travis/compile_nwchem.sh
.t11: &ompi-template
  before_script:
    - export MPI_IMPL="openmpi"
.t12: &mpich-template
  before_script:
    - export MPI_IMPL="mpich"

.t1o: &compile-template-ompi
  <<: *ompi-template
  <<: *compile-template
.t1m: &compile-template-mpich
  <<: *mpich-template
  <<: *compile-template

.t1osx: &compile-template-ompi-osx
    <<: *compile-template-ompi
    os: osx
    arch: amd64
.t1x86: &compile-template-ompi-x86
    <<: *compile-template-ompi
    os: linux
    arch: amd64
.t1m86: &compile-template-mpich-x86
    <<: *compile-template-mpich
    os: linux
    arch: amd64
.t1arm: &compile-template-mpich-arm
    <<: *compile-template-mpich
    os: linux
    arch: arm64
  
.t2: &qatest-template
  script:
    - ./travis/build_env.sh
    -  source ./travis/nwchem.bashrc
    - ./travis/run_qas.sh

.t2o: &qatest-template-ompi
  <<: *ompi-template
  <<: *qatest-template
.t2m: &qatest-template-mpich
  <<: *mpich-template
  <<: *qatest-template

.t3osx: &qatest-template-ompi-osx
    <<: *qatest-template-ompi
    os: osx
    arch: amd64
.t3x86: &qatest-template-ompi-x86
    <<: *qatest-template-ompi
    os: linux
    arch: amd64
.t3m86: &qatest-template-mpich-x86
    <<: *qatest-template-mpich
    os: linux
    arch: amd64
.t3arm: &qatest-template-mpich-arm
    <<: *qatest-template-mpich
    os: linux
    arch: arm64

jobs:
  include:
    - stage: compile
      <<: *compile-template-ompi-x86
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: compile
      <<: *compile-template-ompi-x86
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: compile
      <<: *compile-template-mpich-x86
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: compile
      <<: *compile-template-mpich-x86
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT USE_OPENMP=1
    - stage: compile
      <<: *compile-template-mpich-x86
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=SOCKETS
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT 
    - stage: compile
      <<: *compile-template-ompi-osx
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: compile
      <<: *compile-template-mpich-arm
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PT
    - stage: compile
      <<: *compile-template-mpich-arm
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
    - stage: test
      <<: *qatest-template-ompi-x86
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: test
      <<: *qatest-template-ompi-x86
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: test
      <<: *qatest-template-mpich-x86
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: test
      <<: *qatest-template-mpich-x86
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT USE_OPENMP=1
    - stage: test
      <<: *qatest-template-mpich-x86
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=SOCKETS
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PR USE_OPENMP=1
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES="nwdft solvation driver" ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT 
    - stage: test
      <<: *qatest-template-ompi-osx
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - stage: test
      <<: *qatest-template-mpich-arm
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PT
    - stage: test
      <<: *qatest-template-mpich-arm
      env: NWCHEM_MODULES=tce ARMCI_NETWORK=MPI-TS
  exclude:
    - os: osx
      arch: arm64
  allow_failures:
    - os: linux
      arch: arm64
    - os: osx
      arch: amd64
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - os: linux
      arch: amd64
      env: NWCHEM_MODULES=qmandpw ARMCI_NETWORK=MPI-PR
    - os: osx
      arch: amd64
      env: NWCHEM_MODULES=tinyqmpw ARMCI_NETWORK=MPI-PT USE_SIMINT=1 SIMINT_MAXAM=3
    - os: osx
      osx_image: xcode11.3
      arch: amd64
      env: NWCHEM_MODULES="tinyqmpw python" ARMCI_NETWORK=MPI-PT 

compiler:
  - gcc
dist: bionic
osx_image: xcode11.3
git:
  depth: 32


after_failure:
        - ./travis/check_failures.sh
{'fraction_non_alphanumeric': 0.12249592638742451, 'fraction_numerical': 0.020032588900603852, 'mean_word_length': 2.8976466193500188, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '852528', 'n_tokens_mistral': 4489, 'n_tokens_neox': 4400, 'n_words': 670}