-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
47 lines (41 loc) · 2.23 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
43
44
45
46
47
language: python
os:
- linux
python:
- 3.6
addons:
apt:
packages:
- python-setuptools
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda config --add channels conda-forge
- conda create -n myenv python=3.7
- conda activate myenv
- conda install --channel "intel" -y tbb numba numpy scipy tensorflow-gpu==1.14.0
- conda install awkward cffi cloudpickle lz4 psutil python-xxhash pyyaml requests six tbb tqdm uproot xxhash boost matplotlib
- conda install root=6.18.04
- pip install -U keras
- pip install coffea
- cd tests/hmm
- make
- cd ../..
script:
- PYTHONPATH=coffea:hepaccelerate:. python tests/hmm/hmumu_utils.py || travis_terminate 1
- wget https://jpata.web.cern.ch/jpata/hmm/test_files/21-02-2020-private-nanoaod/myNanoProdMc2016_NANO.root -O data/myNanoProdMc2016_NANO.root || travis_terminate 1
- PYTHONPATH=coffea:hepaccelerate:. python tests/hmm/test_hmumu_utils.py --debug || travis_terminate 1
- wget https://jpata.web.cern.ch/jpata/hmm/test_files/21-02-2020-private-nanoaod/nano_2016_data.root -O data/nano_2016_data.root || travis_terminate 1
- echo data/myNanoProdMc2016_NANO.root > skim.txt
- python tests/hmm/skim_and_recompress.py -i ./skim.txt -o ./data/myNanoProdMc2016_NANO_skim.root -s "(HLT_IsoMu24 || HLT_IsoTkMu24) && nMuon>=2" -t ./ -b batch/branches.txt || travis_terminate 1
- echo data/nano_2016_data.root > skim.txt
- python tests/hmm/skim_and_recompress.py -i ./skim.txt -o ./data/nano_2016_data_skim.root -s "(HLT_IsoMu24 || HLT_IsoTkMu24) && nMuon>=2" -t ./ -b batch/branches.txt || travis_terminate 1
- wget https://jpata.web.cern.ch/jpata/hmm/test_files/21-02-2020-private-nanoaod/myNanoProdMc2016_NANO.root -O data/myNanoProdMc2016_NANO.root || travis_terminate 1
- PYTHONPATH=coffea:hepaccelerate:. python tests/hmm/test_analysis_full.py --debug || travis_terminate 1
- PYTHONPATH=coffea:hepaccelerate:. python tests/hmm/test_btagsf.py || travis_terminate 1