forked from Warchant/sr25519-crust
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
111 lines (110 loc) · 3.59 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
sudo: true
language: cpp
branches:
except:
- "/^feature.*/"
env:
global:
- CTEST_OUTPUT_ON_FAILURE=1
# GITHUB_HUNTER_TOKEN
- secure: Cpv0knP07nPGhmk5qKFHjcS2pgml0ZJ1iRqPi09U2Vid44Lm58qu5UrOzUAhiUXk05pIQwCNU3bQRRFn7RmF/fizkFMXFTHtJpceaTFWEzmoupcEmv2pV1J5VfaCT3WhPvyMqsVgtgHZ8DTc4n9sfPmRSBITJcSjFyIqTlf/x1E4g3dP+/tDEkp3lT5F8/jy3CcZOWMZaFzp6Ci9x+PoZMOY6ySRaPl5ttYXWFN5oLSSdcYfbepMVYYxdHbckdKRILK578e/fiJABL6mWhBY2nde6AImoYqQwWSpgLNotQ4LpoYpLLCpS5BzFf10INwger8LLAFwE/Ktk4CV8ccmbBXWkSOp1+7i06JbX9fBNAwcsBPuay2OePKaoXoE7Mh+w50HYJzyNZEVAEDmf7/Nxhp5E6BR0ZfbHSX2HxtTcSCUjBgt5UKK5NboPr/Swl5fyim4clLHBb+DGQCUrdKPW2ot2ysktNwWYUlb68OXSoYxeJR4SjmmSru0M7TgYlB/bjgGz6wh+GmpoPkjsyB8v++eMQm5ctmE42PtXMfyZR+0zOpuHdBxX9V1QIgrspK4Jj0jwx5PCPmJmbNkBpKQRO/BAtiqaFeWPYosNe2mZxKe9KsGdfb+qVAZ/2kofQILswA78YQCfGT4B0h8HuoLUiE0F4bav/PYUtJdX+HoYIA=
# GITHUB_HUNTER_USERNAME
- secure: Q20D/PlXXwUFpSQPcVqwWizAmQ0QCSvpmvKAwTGHXNr9VT9UueHyBoKlEa6N1kr67LraGFBkhpg4Dj6yZXSL5qbi1FkrQEQ/+Ixoc65Lb/u0MLhpRq8EKJGzPPw88aiIyhvhNINMt7sqM8NAkCZ7R/dO6biwKaoMsuVQUdbGdSNNobc1awNVPEHLbYy2axvxnvDQxQvZh5ZdsZjgvWjOfEhfSqFWrnrX2G4htFgzI1TgMqtHkX8PCdQViwW6i7w9QZwyb5XHwKrt3g7ZBilXKjmhc1DkL3tyOsWaTrzIkVG8Im4pRfV25t8Dc9BKpuRvey4oOqjsWeP0jStqWABeaDB+O2mhHxyAroiV4QINbcqqQaSSzN26WMbA5zzcTRyAsgZzkXUHR2johggQlH4G/NUanJb0bLbQXNYQpudZTT4SYbwWIv8L9MbsfjqxHCnCp5Vs7CYAw1b0+h+7GfbMeCOo65Lk70Uz2zyO1oP4yF3rUZ58SmbJJMJ4JCHoJtci/KCnOVy0la2lLNDFHqqnuoZ+WVBLg0Bs1x2pzUq6IQzU0ZsvjVXrDuZhzeSpFGE4FqMpT00WcNIX2lUX4vJDGWrXjufy0qVA57gyFzYpkddo7K6unHDCsZRJBZnrchzpnTGJXnPF3+x0gm7KGnwsVw/KHW+ny6x4CgXkj4xM7CQ=
cache:
apt: true
pip: true
cargo: true
ccache: true
directories:
- "$HOME/.ccache"
- "$HOME/.cargo"
- "$HOME/Library/Caches/Homebrew"
matrix:
include:
- os: osx
name: OSX gcc
osx_image: xcode10.1
compiler: gcc
before_cache:
- brew cleanup
env:
- _CC=gcc
- _CXX=g++
addons:
homebrew:
packages:
- git
- os: osx
name: OSX clang
osx_image: xcode10.1
compiler: clang
before_cache:
- brew cleanup
env:
- _CC=clang
- _CXX=clang++
addons:
homebrew:
packages:
- git
- os: linux
name: Linux gcc8
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- g++-8
- git
- python3
- python3-pip
- python3-setuptools
env:
- _CC=gcc-8
- _CXX=g++-8
- os: linux
name: Linux clang-8
dist: xenial
compiler: clang
before_cache:
- brew cleanup
addons:
apt:
sources:
- llvm-toolchain-xenial-8
packages:
- clang-8
- git
- python3
- python3-pip
- python3-setuptools
env:
- _CC=clang-8
- _CXX=clang++-8
install:
- |
# install python pip3 deps
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
pip3 install --user pyyaml
fi
sudo pip3 install --upgrade pip
pip3 install --user --upgrade scikit-build requests gitpython cmake gcovr
before_script:
- cmake --version
- python -V
- python3 -V
- pip -V
- pip3 -V
- gcovr --version || true
script:
- export CC=${_CC}
- export CXX=${_CXX}
- export PATH="$HOME/.cargo/bin:$PATH"
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
- rustup default nightly
- cmake . -Bbuild -DTESTING=ON
- cmake --build build -- -j2
- cmake --build build --target test