Skip to content

Commit

Permalink
[travis] Added travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gjacquenot committed Mar 15, 2017
1 parent b4980c7 commit b9c5f25
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
sudo: required
dist: trusty
language: fortran

matrix:
include:
- os: linux
compiler: clang
env: BTYPE=Debug
- os: linux
compiler: gcc
env: BTYPE=Release

before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install gfortran; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install liblapack-dev; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install fftw3; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install libfftw3-dev; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install python; fi

install:
- mkdir pscf-build && cd pscf-build
# Configure
- cmake $TRAVIS_BUILD_DIR -DCMAKE_Fortran_COMPILER=`which gfortran` -DCMAKE_BUILD_TYPE=$BTYPE -DCMAKE_INSTALL_PREFIX=~/pscf
# Build
- make

script:
## Test the program
#- make test
# Create package
- make package
# Make sure we can install with no issues.
- make install

0 comments on commit b9c5f25

Please sign in to comment.