-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4980c7
commit b9c5f25
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |