forked from tudo-astroparticlephysics/PROPOSAL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
130 lines (116 loc) · 3.9 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
language: cpp
notifications:
email: false
git:
depth: 10
env:
global:
- GTEST_COLOR=1
- CMAKE_VERSION=3.8.2
jobs:
include:
- os: linux
dist: xenial
name: Python
language: python
python: 3.8
before_install:
install:
- pip install pytest
- pip install .
script:
- python -m pytest tests/python -v
- os: linux
dist: xenial
name: Linux gcc 4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
- CC=gcc-4.8
- CXX=g++-4.8
- os: linux
dist: xenial
name: Linux gcc 9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- CC=gcc-9
- CXX=g++-9
- os: linux
dist: xenial
name: Linux clang 3.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-3.6
packages:
- clang-3.6
- g++-4.9
env:
- CC=clang-3.6
- CXX=clang++-3.6
- os: linux
dist: xenial
name: Linux clang 8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-8
packages:
- clang-8
- g++-8
env:
- CC=clang-8
- CXX=clang++-8
before_install:
- ci/install_cmake.sh
- export PATH="$HOME/cmake/bin:$PATH"
- cmake --version
install:
- mkdir build
- cd build
- cmake .. -DADD_PYTHON=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/proposal
- cmake --build . -- VERBOSE=1 -j2
- cmake --build . --target install
- mkdir -p $HOME/.local/share/PROPOSAL/tables
script:
- travis_wait 60 ctest -j2 --verbose -E "(Brems|Photo|Epair|Mupair)"
before_deploy:
- |
if [[ -z "$TRAVIS_PYTHON_VERSION" ]]; then
git clean -fdx
cd $TRAVIS_BUILD_DIR/..
tar czf $HOME/PROPOSAL-$TRAVIS_TAG.tar.gz --exclude-vcs PROPOSAL
fi
- cd $TRAVIS_BUILD_DIR
deploy:
- provider: releases
token:
secure: nWVAw2ifn2zkdDkeLLKgXZgWRo/A9Z6LL+0J8xCscKay6Jn4dJ01ODyT+KJGbsKXHMMvalJXDgE7A8c5x6RN+ljq+sEr9FIvxwXmV0npsZhoRBoCmQPrQ8JQO1+fyKcNv60Os9UuPBSGCwdoZ5oXkIMFRSt7CmPKagkgaom8u9Zs3rkKtXN9TUW1I5MOxrXJZPLepd1Hx8ZS7cejcZ2tyovcn56uG/LOR0RJstU1KShNIP58B4iV+jaiqEJnd0rtzDoc8LND0vdEmuVSAphb/DXOhDa0greiIOiXsVYfcfXda1vb+Uo/kafznfYs+8PnqOwQqom0oE3n6CTY+ffsvSbJrn9UQoAaHaC2XwyLSSRyy+5mJB6nhCi+oBHg+bvWnCmYf2RizuHHqpKB3c3TA9iQt1lxlrzPtxibykSXFbFRv6NjCN+wfxinFnIO2hUczPzHDmwFRLM5bzuQZ4j8Q6dV5X8UBiws0wOmkSRL0H4PB7UldqiP/qAV2XYT6V4l5cpaDlVGUOlSTheK1gejpbvJw256ggTuYo9/hBWPPwniUGXbMTeMViqSRRY3X0r9hz/zxvt7oECJGmsy2YmeLi2LnKVKaRWhsrIavlD9A167dNtrrYgflwPbVwe84lYlO2vJxTqTEygeZqMkOsT0myBYQi03xesJ3IBtiCMWgME=
file: $HOME/PROPOSAL-$TRAVIS_BRANCH.tar.gz
on:
repo: tudo-astroparticlephysics/PROPOSAL
tags: true
condition: $CXX = g++-9
- provider: pypi
username: "__token__"
skip_existing: true
cleanup: false
distributions: sdist
password:
secure: "FRZVY+N0WkUkuaQT+9O9j6YKTAFVOkzBZ8//Aq/kjvhMtwCDEOCugqX6F2PIAQLX/Sa3u/1eP+Uy4Bo6W5j34dP3zXgCeeGw9r/PAvk9A2wd5EQ/OqrdubmDnErvFaMwGuLF3HuSN0rVsrrGb74a6Ka9/O8ygP/ykSdaMv3gqmZmSDbAUri8c8KXFAaZ6lw13sFPFnpf9vTQ4OBjGLnYK7blqCljfSF5wdAuExBF9f5EwHKMPofplGP6I748+y5Yw68SgF1Qg61sTa+mm/tOBHMfQNRCqP7I3oc6DRcp77kVm0EZAkcUNOwpleHr9awC8eBwBr29Ju6PRz9DE7sLCGPYuEm2UKXtDK+L5gy2+oanrU3kbS5/YZJqgP7iJxEmyGR9id/AY2qAe934tzV9CKCGn7z/+BAoF/LhP4TopIvZy1R/4gWBp9DwYTR8RAmCrsfOyHHRRKnUsFg0d7OiNpmROidNRq1lQxyK4Fog+C1mfgc5kM92Popkf/IM2zT/jLm2cfXYFvx0trb4SCmoLQ060Tb6XwkyjuJ8lxTwbkvAI6mYNVLlDPJKX44adDymaDks841N5oMvb0jRS8o5wl+DsVjUnG7+kpy6ErfXXo8rI+ovHnHDB+SoWw+NZSr+52MnBlk0jKlLVWBhGhzHIwAzNLFc4XUQ5cxrtkyUsaw="
on:
repo: tudo-astroparticlephysics/PROPOSAL
tags: true
branch: master
condition: $TRAVIS_PYTHON_VERSION = "3.8"