forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 2.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: python
python: 2.6
env:
matrix:
- ENV_MOD_VERSION=3.2.10 EASYBUILD_MODULES_TOOL=EnvironmentModulesC EASYBUILD_MODULE_SYNTAX=Tcl
- LMOD_VERSION=5.8
- LMOD_VERSION=5.8 EASYBUILD_MODULE_SYNTAX=Tcl
- LMOD_VERSION=6.6.3
- LMOD_VERSION=6.6.3 EASYBUILD_MODULE_SYNTAX=Tcl
- LMOD_VERSION=7.0
- LMOD_VERSION=7.0 EASYBUILD_MODULE_SYNTAX=Tcl
matrix:
# mark build as finished as soon as job has failed
fast_finish: true
include:
# also test default configuration with Python 2.7
- python: 2.7
env: LMOD_VERSION=5.8
addons:
apt:
packages:
- tcl8.5
install:
# pydot (dep for python-graph-dot) 1.2.0 and more recent doesn't work with Python 2.6
- if [ "x$TRAVIS_PYTHON_VERSION" == 'x2.6' ]; then pip install pydot==1.1.0; else pip install pydot; fi
# required for test_dep_graph
- pip install pep8 python-graph-core python-graph-dot
# install easybuild-framework/easybuild-easyblocks (and dependencies)
# use 'develop' branch of framework/easyblocks, except when testing 'master'
- if [ "x$TRAVIS_BRANCH" = 'xmaster' ]; then BRANCH=master; else BRANCH=develop; fi
- cd $HOME
- git clone -b $BRANCH --depth 10 --single-branch https://github.com/hpcugent/easybuild-framework.git
- cd easybuild-framework; git log -n 1; cd -
- easy_install $PWD/easybuild-framework
- git clone -b $BRANCH --depth 10 --single-branch https://github.com/hpcugent/easybuild-easyblocks.git
- cd easybuild-easyblocks; git log -n 1; cd -
- easy_install $PWD/easybuild-easyblocks
# install environment modules tool using 'install_eb_dep.sh' script provided by easybuild-framework
- if [ ! -z $ENV_MOD_VERSION ]; then source $(which install_eb_dep.sh) modules-${ENV_MOD_VERSION} $HOME; fi
- if [ ! -z $LMOD_VERSION ]; then source $(which install_eb_dep.sh) lua-5.1.4.8 $HOME; fi
- if [ ! -z $LMOD_VERSION ]; then source $(which install_eb_dep.sh) Lmod-${LMOD_VERSION} $HOME; fi
before_script:
- cd $TRAVIS_BUILD_DIR
# pull in develop so we can diff against it
- git fetch -v origin ${TRAVIS_BRANCH}:${TRAVIS_BRANCH}
# get list of filenames for modified/added files, use '...' to compare with merge base of develop and branch
- git diff --name-only --diff-filter=AM ${TRAVIS_BRANCH}...HEAD
script:
- cd $HOME
- export PYTHONPATH=$TRAVIS_BUILD_DIR
- python -O -m test.easyconfigs.suite