Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 34 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,49 @@ env:
# Using configure and make, run the tests.
- >
BUILD_SCRIPT="FC='gfortran -fno-backtrace' ./configure &&
make -j 2 && make -j 2 check && ./testcheck.sh"
make -j 2 && make -j 2 check && ./testcheck.sh" COMPILER="gfortran"

# Using cmake - just build, tests not working yet.
- >
BUILD_SCRIPT="mkdir cmake_build/ && cd cmake_build &&
cmake ../ && make -j 2"
cmake ../ && make -j 2" COMPILER="gfortran"

# Using configure and make and intel run the tests.
- >
BUILD_SCRIPT="FC='ifort -notraceback' ./configure &&
make -j 2 && make -j 2 check && ./testcheck.sh" COMPILER="ifort"

# Using configure and make and pgi run the tests.
- >
BUILD_SCRIPT="FC='pgf90' ./configure &&
make -j 2 && make -j 2 check && ./testcheck.sh" COMPILER="pgi"

install:
- |
if [[ ! -d "$HOME/.local/bin" ]]; then
mkdir -p "$HOME/.local/bin"
if [[ "$COMPILER" == 'gfortran' ]]; then
if [[ ! -d "$HOME/.local/bin" ]]; then
mkdir -p "$HOME/.local/bin"
fi
export PATH="$HOME/.local/bin:$PATH"
ls -l /usr/bin/gfortran-4.9
export FC=/usr/bin/gfortran-4.9
ln -fs /usr/bin/gfortran-4.9 "$HOME/.local/bin/gfortran"
gfortran --version
elif [[ "$COMPILER" == 'ifort' ]]; then
wget -q 'https://raw.githubusercontent.com/nemequ/icc-travis/master/install-icc.sh'
chmod u+x ./install-icc.sh
./install-icc.sh --components ifort
source ~/.bashrc
elif [[ "$COMPILER" == 'pgi' ]]; then
wget -q 'https://raw.githubusercontent.com/nemequ/pgi-travis/master/install-pgi.sh'
chmod u+x ./install-pgi.sh
./install-pgi.sh
source ~/.bashrc
fi
- export PATH="$HOME/.local/bin:$PATH"
- ls -l /usr/bin/gfortran-4.9
- export FC=/usr/bin/gfortran-4.9
- ln -fs /usr/bin/gfortran-4.9 "$HOME/.local/bin/gfortran"
- gfortran --version

script:
- echo $BUILD_SCRIPT
- bash <<<$BUILD_SCRIPT

after_script:
- '[[ ! -z "${INTEL_INSTALL_PATH}" ]] && uninstall_intel_software'