Skip to content

Commit 5f15f59

Browse files
authored
Merge pull request #1 from boegel/env-modules-4
also test against Modules v4
2 parents 52c5bcb + 6c6bb61 commit 5f15f59

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
- LMOD_VERSION=7.4 TEST_EASYBUILD_MODULE_SYNTAX=Tcl
1212
- ENV_MOD_VERSION=3.2.10 TEST_EASYBUILD_MODULES_TOOL=EnvironmentModulesC TEST_EASYBUILD_MODULE_SYNTAX=Tcl
1313
- ENV_MOD_TCL_VERSION=1.147 TEST_EASYBUILD_MODULES_TOOL=EnvironmentModulesTcl TEST_EASYBUILD_MODULE_SYNTAX=Tcl
14+
- ENV_MOD_VERSION=4.0.0 TEST_EASYBUILD_MODULE_SYNTAX=Tcl TEST_EASYBUILD_MODULES_TOOL=EnvironmentModules
1415
matrix:
1516
# mark build as finished as soon as job has failed
1617
fast_finish: true
@@ -44,6 +45,8 @@ before_install:
4445
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install pydot==1.1.0; else pip install pydot; fi
4546
# paramiko (dep for GC3Pie) 2.4.0 & more recent doesn't work with Python 2.6
4647
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install 'paramiko<2.4.0'; else pip install paramiko; fi
48+
# SQLAlchemy (dep for GC3Pie) 1.2.0 & more recent doesn't work with Python 2.6
49+
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install 'SQLAlchemy<1.2.0'; else pip install SQLAlchemy; fi
4750
# optional Python packages for EasyBuild
4851
- pip install autopep8 GC3Pie pycodestyle python-graph-dot python-hglib PyYAML
4952
# git config is required to make actual git commits (cfr. tests for GitRepository)
@@ -62,7 +65,7 @@ script:
6265
# make sure 'ml' alias is defined, otherwise sourcing the init script fails (silently) for Lmod (< 5.9.3)
6366
- if [ ! -z $MOD_INIT ] && [ ! -z $LMOD_VERSION ]; then alias ml=foobar; fi
6467
# set up environment for modules tool (if $MOD_INIT is defined)
65-
- if [ ! -z $MOD_INIT ]; then source $MOD_INIT; fi
68+
- if [ ! -z $MOD_INIT ]; then source $MOD_INIT; type module; fi
6669
# install GitHub token
6770
- if [ ! -z $GITHUB_TOKEN ]; then
6871
if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ];

easybuild/scripts/install_eb_dep.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ PKG_VERSION=`echo $PKG | sed 's/.*-//g'`
1515
CONFIG_OPTIONS=
1616
PRECONFIG_CMD=
1717

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

24+
elif [ x$PKG_NAME == 'xmodules' ]; then
25+
PKG_URL="http://prdownloads.sourceforge.net/modules/${PKG}.tar.gz"
26+
export PATH=$PREFIX/bin:$PATH
27+
export MOD_INIT=$HOME/init/bash
28+
2429
elif [ x$PKG_NAME == 'xlua' ]; then
2530
PKG_URL="http://downloads.sourceforge.net/project/lmod/${PKG}.tar.gz"
2631
BACKUP_PKG_URL="https://easybuilders.github.io/easybuild/files/${PKG}.tar.gz"
@@ -55,7 +60,7 @@ fi
5560
set -e
5661

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

0 commit comments

Comments
 (0)