-
Notifications
You must be signed in to change notification settings - Fork 97
/
.travis.yml
executable file
·35 lines (33 loc) · 1.35 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
dist: bionic
matrix:
include:
- name: "clang static analysis"
if: type = pull_request OR type = api OR type = cron
language: cpp
compiler:
- clang
before_install:
- cd ~/; git clone https://github.com/amrex-codes/amrex
- cd ~/amrex; git checkout development
- cd ~/; git clone https://github.com/starkiller-astro/Microphysics.git
- cd ~/Microphysics; git checkout development
- cd $TRAVIS_BUILD_DIR
addons:
apt:
packages:
- g++
- gfortran
- libgmp-dev
- libmpfr-dev
- python3
before_script:
- export AMREX_HOME=~/amrex
- export MICROPHYSICS_HOME=~/Microphysics
- export CASTRO_HOME=$TRAVIS_BUILD_DIR
script:
- cd $TRAVIS_BUILD_DIR/Exec/science/flame_wave; scan-build -enable-checker alpha.cplusplus.IteratorRange -enable-checker alpha.security.ArrayBoundV2 -enable-checker security.FloatLoopCounter -enable-checker security.insecureAPI.UncheckedReturn make -j 2 USE_OMP=FALSE USE_MPI=FALSE USE_CUDA=FALSE DEBUG=TRUE 2>&1 | tee clang_analysis.txt
- python3 $TRAVIS_BUILD_DIR/Util/code_checker/clang_static_analysis.py clang_analysis.txt
- name: "tab exterminator"
if: type = pull_request OR type = api
script:
- ./Util/code_checker/pr_tab_remover.sh