-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
42 lines (36 loc) · 1.38 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
#Build testing for LICHEM
#NB: Currently the OSX build skips the documentation
#Email settings
notifications:
email:
on_success: change
on_failure: always
#Compiler settings
language: cpp
compiler:
- gcc
- clang
#OS settings
sudo: required
dist: trusty
os:
- linux
- osx
#Install required packages
before_install:
#Linux options
- if [ ${TRAVIS_OS_NAME} == linux ]; then sudo apt-get update -qq; fi
- if [ ${TRAVIS_OS_NAME} == linux ]; then sudo apt-get install -qq texlive; fi
- if [ ${TRAVIS_OS_NAME} == linux ]; then if [ ${CXX} == clang++ ]; then sed -i 's/CXX=/CXX=clan/g' Makefile; fi; fi
- if [ ${TRAVIS_OS_NAME} == linux ]; then if [ ${CC} == clang ]; then sed -i 's/CC=/CC=clan/g' Makefile; fi; fi
#OSX options
- if [ ${TRAVIS_OS_NAME} == osx ]; then brew update; fi
- if [ ${TRAVIS_OS_NAME} == osx ]; then if [ ${CXX} == clang++ ]; then sed -i "" 's/CXX=/CXX=clan/g' Makefile; fi; fi
- if [ ${TRAVIS_OS_NAME} == osx ]; then if [ ${CC} == clang ]; then sed -i "" 's/CC=/CC=clan/g' Makefile; fi; fi
- if [ ${TRAVIS_OS_NAME} == osx ]; then sed -i "" 's/-static//g' Makefile; fi
- if [ ${TRAVIS_OS_NAME} == osx ]; then sed -i "" 's/-fopenmp//g' Makefile; fi
- if [ ${TRAVIS_OS_NAME} == osx ]; then sed -i "" 's/SEDI=-i/SEDI=-i \"\"/g' Makefile; fi
#Run tests
script:
- make install && make clean
- if [ ${TRAVIS_OS_NAME} == linux ]; then apt-get moo; fi