Skip to content

Commit

Permalink
Merge pull request #1 from boegel/env-modules-4
Browse files Browse the repository at this point in the history
also test against Modules v4
  • Loading branch information
ebagrenrut authored Dec 29, 2017
2 parents 52c5bcb + 6c6bb61 commit 5f15f59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
- LMOD_VERSION=7.4 TEST_EASYBUILD_MODULE_SYNTAX=Tcl
- ENV_MOD_VERSION=3.2.10 TEST_EASYBUILD_MODULES_TOOL=EnvironmentModulesC TEST_EASYBUILD_MODULE_SYNTAX=Tcl
- ENV_MOD_TCL_VERSION=1.147 TEST_EASYBUILD_MODULES_TOOL=EnvironmentModulesTcl TEST_EASYBUILD_MODULE_SYNTAX=Tcl
- ENV_MOD_VERSION=4.0.0 TEST_EASYBUILD_MODULE_SYNTAX=Tcl TEST_EASYBUILD_MODULES_TOOL=EnvironmentModules
matrix:
# mark build as finished as soon as job has failed
fast_finish: true
Expand Down Expand Up @@ -44,6 +45,8 @@ before_install:
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install pydot==1.1.0; else pip install pydot; fi
# paramiko (dep for GC3Pie) 2.4.0 & more recent doesn't work with Python 2.6
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install 'paramiko<2.4.0'; else pip install paramiko; fi
# SQLAlchemy (dep for GC3Pie) 1.2.0 & more recent doesn't work with Python 2.6
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install 'SQLAlchemy<1.2.0'; else pip install SQLAlchemy; fi
# optional Python packages for EasyBuild
- pip install autopep8 GC3Pie pycodestyle python-graph-dot python-hglib PyYAML
# git config is required to make actual git commits (cfr. tests for GitRepository)
Expand All @@ -62,7 +65,7 @@ script:
# make sure 'ml' alias is defined, otherwise sourcing the init script fails (silently) for Lmod (< 5.9.3)
- if [ ! -z $MOD_INIT ] && [ ! -z $LMOD_VERSION ]; then alias ml=foobar; fi
# set up environment for modules tool (if $MOD_INIT is defined)
- if [ ! -z $MOD_INIT ]; then source $MOD_INIT; fi
- if [ ! -z $MOD_INIT ]; then source $MOD_INIT; type module; fi
# install GitHub token
- if [ ! -z $GITHUB_TOKEN ]; then
if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ];
Expand Down
9 changes: 7 additions & 2 deletions easybuild/scripts/install_eb_dep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ PKG_VERSION=`echo $PKG | sed 's/.*-//g'`
CONFIG_OPTIONS=
PRECONFIG_CMD=

if [ x$PKG_NAME == 'xmodules' ]; then
if [ x$PKG_NAME == 'xmodules' ] && [ x$PKG_VERSION == 'x3.2.10' ]; then
PKG_URL="http://prdownloads.sourceforge.net/modules/${PKG}.tar.gz"
BACKUP_PKG_URL="https://easybuilders.github.io/easybuild/files/${PKG}.tar.gz"
export PATH=$PREFIX/Modules/$PKG_VERSION/bin:$PATH
export MOD_INIT=$HOME/Modules/$PKG_VERSION/init/bash

elif [ x$PKG_NAME == 'xmodules' ]; then
PKG_URL="http://prdownloads.sourceforge.net/modules/${PKG}.tar.gz"
export PATH=$PREFIX/bin:$PATH
export MOD_INIT=$HOME/init/bash

elif [ x$PKG_NAME == 'xlua' ]; then
PKG_URL="http://downloads.sourceforge.net/project/lmod/${PKG}.tar.gz"
BACKUP_PKG_URL="https://easybuilders.github.io/easybuild/files/${PKG}.tar.gz"
Expand Down Expand Up @@ -55,7 +60,7 @@ fi
set -e

# environment-modules needs a patch to work with Tcl8.6
if [ x$PKG_NAME == 'xmodules' ]; then
if [ x$PKG_NAME == 'xmodules' ] && [ x$PKG_VERSION == 'x3.2.10' ]; then
wget -O 'modules-tcl8.6.patch' 'https://easybuilders.github.io/easybuild/files/modules-3.2.10-tcl8.6.patch'
patch ${PKG}/cmdModule.c modules-tcl8.6.patch
fi
Expand Down

0 comments on commit 5f15f59

Please sign in to comment.