Skip to content
Open
Show file tree
Hide file tree
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
29 changes: 24 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,57 @@ matrix:
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
brew install gcc@7 || true;
brew link --overwrite gcc@7;
brew install gcc@7 || true
brew link --overwrite gcc@7
echo "TRAVIS OS OSX BREW"
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
pip install --user cpp-coveralls
echo "TRAVIS OS LINUX PIP"
fi

before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
export CC="clang" FC="gfortran-7" CXX="clang++" ;
export CC="clang" FC="gfortran-7" CXX="clang++"
echo "TRAVIS OS OSX clang"
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
export CC="gcc-6" FC="gfortran-6" CXX="g++-6" ;
export CC="gcc-6" FC="gfortran-6" CXX="g++-6"
echo "TRAVIS OS LINUX gfortran"
fi
# - export CC="gcc-6" FC="gfortran-6" CXX="g++-6" ;

script:
- make
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
export LD_LIBRARY_PATH=${PWD}/schemes/check/src/check-build
make test
echo "TRAVIS OS LINUX make test"
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
export DYLD_LIBRARY_PATH=${PWD}/schemes/check/src/check-build
make test
echo "TRAVIS OS OSX make test"
fi

after_failure:
- sleep 1
- echo "$TRAVIS_OS_NAME"
- ls -ls
- cat fort.10
- echo "Your build FAILED"

after_success:
- sleep 1
- echo "$TRAVIS_OS_NAME"
- ls -ls
- cat fort.10
- echo "Your build WORKED"

#======================================================================
# Notifications
#======================================================================
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ run_this.o : run_this.f90

test :
./a.out
ls -ls
whereis sh
ls -ls /bin/sh
cat fort.10
./tester.sh

clean :
rm -f a.out run_this.o
rm fort.10
1 change: 1 addition & 0 deletions run_this.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
program run_this
print *,'Hmmm, program seemed to run'
write (10,*) 1
end program run_this
8 changes: 8 additions & 0 deletions tester.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/csh

# This is a comment

grep -q 1 fort.10
set OK = $status
echo $OK
exit ( $OK )
8 changes: 8 additions & 0 deletions tester.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# This is a comment

grep -q 1 fort.10
OK=$?
echo $OK
exit $OK