forked from ComPWA/pycompwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
113 lines (108 loc) · 3.63 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
language: cpp
branches:
only:
- master
- /\d+\.\d+\.\d+/ # Run on tags e.g. 0.1.2
except: gh-pages
env:
global:
- OMP_NUM_THREADS: 1
- LANG: en_US.UTF-8
- BASEPATH: "$TRAVIS_BUILD_DIR"
- ROOTSYS: "$BASEPATH/root"
jobs:
include:
- os: osx
osx_image: xcode10.2
addons:
homebrew:
packages:
- boost
- python3
- pip3
env:
- TASK="clang, ROOT v6.18"
- ROOTBIN="v6.18.04.macosx64-10.14-clang100"
script:
- cd $BASEPATH
- python setup.py --generator "Unix Makefiles" --skip-generator-test install
-- -- -j2
# The test fails on mac osx because of a wrong RPATH in the precompiled root binaries
- os: linux
dist: bionic
compiler: gcc
env:
- TASK="gcc7, ROOT v6.18"
- ROOTBIN="v6.18.04.Linux-ubuntu18-x86_64-gcc7.4"
addons:
apt:
update: true
packages:
- libboost-all-dev
- python3
- python3-pip
- python3-venv
- pandoc
script:
- cd $BASEPATH
- python setup.py --generator "Unix Makefiles" --skip-generator-test install
-- -- -j2
- cd $BASEPATH/tests
- python -m pytest
- cd $BASEPATH/doc
- make html
before_deploy:
- cd $BASEPATH
- touch doc/build/html/.nojekyll
- rm -rf doc/build/html/_sources
- openssl aes-256-cbc -K $encrypted_ffa3dff63372_key -iv $encrypted_ffa3dff63372_iv -in github_deploy_key.enc -out github_deploy_key -d
deploy:
provider: pages
keep_history: true
deploy_key: github_deploy_key
cleanup: false
edge: true
repo: ComPWA/ComPWA.github.io
target_branch: master
local_dir: "$BASEPATH/doc/build/html"
verbose: true
on:
branch: master
- os: linux
dist: bionic
env:
- TASK="deployment"
addons:
apt:
update: true
packages:
- python3
- python3-pip
- python3-venv
install: echo "Skipping install stage!"
script: echo "Skipping script stage!"
deploy:
- provider: pypi # Upload new release on pypi for each tagged commit
on: # Make sure that the version number in setup.py is
tags: true # increased before(!) you tag the commit q
distributions: sdist
skip_existing: true
username: __token__
password:
secure: bvlu0vG8oOYgLbNRkbZT5QO8AQDRlMuHPUn4U7PIECzQNjFC31Y8ugXTQOPdcNsACc8TR3z52uZ1JmuK4XI9++7HuzRwhMgKziCEwD/fBdZETxXq95LorbMaD8qOY43v5vJAeFDzouDoP3iBVTpJG3dZPk7OrHy0uSSGYnC0M/WqoFg/3Lfg5tlKz8doBbgGVG/vY/58GyDxu3GcSVg7c3A4CNYKk6FwXwbWo7itTzXMJFjWmlolFtNv9m4b4gLrPSvUf7A/BrovC9IYic2N+T/KnbVOBopQ9ggk+uf1eMv1emruNiqUaJ963DMPjE154hbR7Ykvz4ng/CsvI8enmiPg18RoS1DLGxe7LVr0RzZaGsW0gw8q6H6Noc0FzNXwLb5+fDWHJtz87rrVmZZz+ofVpo370Q9y7B6joJ5EBDxPwi/Ef9MBZMEMR1pArX9rnlkVpPit0nvsb+R4e5ZS5CHj7ArSxio5pXLMrEtJyJKpnaeCbjIp5b+UfsVwSbY6i3UpE0HSHDW/Nic02/d9PfgxuBkEp6jb30yajsfWroMpJQyKD/X1qIUO48deUO79Mnu33EGWnccYBbmhMxFNCQnfLVPwKAQm7YM1/WlUa6ictifxlLouG8wZjAUviBcvTjzDY53UUpS/PIkGPL9MrqjLJbsR0XwAwp4leprngyY=
before_install:
- cd $BASEPATH
- python3 -m venv python-venv
- source ./python-venv/bin/activate
install:
- cd $BASEPATH
- cmake --version
- pip install -r doc/requirements.txt
- pip install scikit-build
- pip install scipy
- pip install pytest
- wget https://root.cern.ch/download/root_${ROOTBIN}.tar.gz
- tar xpvfz root_*.tar.gz > /dev/null 2>&1
- cd root
- source bin/thisroot.sh
- cd $BASEPATH