Repository Config
checks:
python:
code_rating: true
duplicate_code: true
build:
environment:
python: 2.7.7
nodes:
main:
dependencies:
before:
# runs before inferred commands
#- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
#- bash miniconda.sh -b -p $HOME/miniconda
#- export PATH=${HOME}/miniconda/bin:${PATH}
#- hash -r
#- conda config --set always_yes yes --set changeps1 no
#- conda update -q conda
#- conda create -n test-environment -c conda-forge -c threeml python=2.7 numba numpy scipy astropy healpy threeml
#- source activate test-environment
#- hash -r
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main" | sudo tee -a /etc/apt/sources.list
- echo "deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" | sudo tee -a /etc/apt/sources.list
- echo "deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main" | sudo tee -a /etc/apt/sources.list
- echo "deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
- sudo apt-get update
- sudo apt-get install -y --force-yes clang-6.0 lldb-6.0 lld-6.0
override:
#- export PATH=${HOME}/miniconda/bin:${PATH}
#- source activate test-environment
#- hash -r
- pip install numpy scipy
- export LLVM_CONFIG=`which llvm-config-6.0`
- export CXX=`which clang++-6.0`
- pip install llvmlite
- pip install iminuit
- unset CXX
- pip install .
- pip install git+git://github.com/giacomov/astromodels.git
- pip install git+git://github.com/giacomov/3ML.git
after:
# runs after inferred commands
# ...
project_setup:
# ...
tests:
override:
#- export PATH=${HOME}/miniconda/bin:${PATH}
#- source activate test-environment
- hash -r
- py-scrutinizer-run
- pylint-run --max-line-length=120
filter:
excluded_paths:
- 'tests/'
- 'hawc_hal/obsolete/'
dependency_paths:
- 'lib/*'