#!/bin/bash
# This script is meant to be called by the "install" step defined in
# .travis.yml. See http://docs.travis-ci.com/ for more details.
# The behavior of the script is controlled by environment variabled defined
# in the .travis.yml in the top level folder of the project.

# License: 3-clause BSD


set -xe # Exit on first error


if [[ "$SCHEDULER" == "SLURM" ]]; then
    sudo apt-get update
    sudo apt-get -y install slurm-llnl
    sudo /usr/sbin/create-munge-key -f
    sudo service munge start
    sudo python continuous_integration/configure_slurm.py
fi
#!/bin/bash
# This script is meant to be called by the "install" step defined in
# .travis.yml. See http://docs.travis-ci.com/ for more details.
# The behavior of the script is controlled by environment variabled defined
# in the .travis.yml in the top level folder of the project.

# License: 3-clause BSD


set -xe # Exit on first error


if [[ "$SCHEDULER" == "SLURM" ]]; then
    sudo apt-get update
    sudo apt-get -y install slurm-llnl
    sudo /usr/sbin/create-munge-key
    sudo service munge start
    sudo python continuous_integration/configure_slurm.py
fi
--- 
+++ 
@@ -13,7 +13,7 @@
 if [[ "$SCHEDULER" == "SLURM" ]]; then
     sudo apt-get update
     sudo apt-get -y install slurm-llnl
-    sudo /usr/sbin/create-munge-key -f
+    sudo /usr/sbin/create-munge-key
     sudo service munge start
     sudo python continuous_integration/configure_slurm.py
 fi
FIX Travis-CI Slurm not working: overwrite munge key
