forked from centrifuge/centrifuge-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (51 loc) · 2.77 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
# Request an environment that provides sudo (that goes with larger containers)
# and a minimal language environment.
sudo: true
language: rust
services:
- docker
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
cache: cargo
branches:
only:
- master
env:
global:
- RUST_BACKTRACE=1
- secure: "gV/Zl5ihkZTB3S8ezmpTD7gvAzI2+tOSEQhZr91XoLptLt/w0y69q9ggOUiC457tD+77nb5SgqfRNI1PC+57xWpky1SowKJLzzmEbSdGdv+D35WcJVED4sasyEVPKolO3uOdW6h6vCOpRkyEOqHI4q/x7TUZu1ZiqrXHaU3U7s8MRceRCdzFRyC9l6RF9ovyIz/4aagfIvMPq5KB7WfmoJmkj/MDtNoUwuF8pry1HIbvPkx1Us7iYxVuzzUpuZOyp2dm1/7ERgTxURI9JwokvRxHW4EyBH3QWoKpMRIQZNQbjfluviSBKGpqXkBrsnwagDuVyC1tlUR2ZJOaJtAJcSlKaljLlj3pfPHYCORAFSKFyi3BKSNBf9kzVNcYVuZgosiXSaCzD1QYBlfBRcuDVgVPaxViMRmHAVZmYZBKOUO6YLasZIIkHzERAuhLF/vpetDIR/2A3cWbwknz55NXvvo5rY28a5YYEuactaJrTPbOP4y6WW22E2XkcuWcRN+TPN1bhoUctqT2DXxvlqqPTIILae/WV9hKFvB3bfnQVyB8BHldSmjLsLwQC4TzAJEIgegfC431bZGFn2pRTwJDtpiocThmzkWn8UOf9jCFTin4VZcQxEr6vZusKY77PObTEMQTJpiz6LSYDsTTMgTc5lmi8zJ0E/JlkL94vbL0SsM="
- secure: "p1XKGf0G74t6shD456Bbc89K83lLx8M5JZpik/7gIBwnninm5FVE+8Zm9+88gjIBSlcx9Rlp2P01va6fiTGDPTk3hDmioCJIifQSrCakd6/hiANu8IVZqj9ud83lBYuWYOY2kjTtFKV4e2JO80lny2+w6+cs3vGbltTxDwF0nAJV7T1kb2RMZOzUXd1/I0mAU68hg4EZ/tLV6H5g2I+Au1k0iST3EXxYaykGXntmDR7xv6QZboFT97ZUyb2gnqqM1MRui0aVft+XaFIy2/TQah2uwZy7cM+zzhBcVUSttiQqsNN8m789fo1xgZDFUR5tPNBBiztmRnk5/DvmESyGO8yFsy4mNFVplugyNpTq+7UBBxv2yf6CU1/TEtGNvbciTKt8celZajsm+o7Z+4kxUMOCLn1sS1wcoq3cnGHItSSHM72/ph3voJpe/4UxDMcnsWfQINLm13Q0ttNmx5hqwB9KinYor76UKE3LnfdT53G3x8/pdjkdQUURNB37A6S6UWWu7zZIJ1BgxQmQPBmIhlG98zVwqFtbuqMLX29rAUGR3Zu9YGmPcmFkoL9R2vfflUrUmdG4p5S/p9+F33PFpmSzb40I0ewlvgWyOddX/jo9/WRf0N943OxWjr7OEyIwC56t/q9zpwPo14qeu75S7L8DXNPyFONHiYddO+HhzBc="
- RUST_TOOLCHAIN=nightly-2020-08-16
before_install:
# Check how much space we've got on this machine.
- df -h
jobs:
include:
- stage: "Check PR runtime changes"
script: travis_wait 180 ./ci/check_runtime_changes.sh
- stage: "Test and build"
name: "Run runtime tests"
script: TARGET=runtime-test travis_wait 180 ./ci/script.sh
- # stage name not required, will continue last one
name: "Build binary"
script: TARGET=build-client travis_wait 180 ./ci/script.sh
- stage: "Build runtime"
if: (NOT type IN (pull_request)) AND (branch = master || tag IS present)
script: TARGET=build-runtime travis_wait 180 ./ci/script.sh
- stage: "Build and push Docker image"
if: (NOT type IN (pull_request)) AND (branch = master)
script: travis_wait 180 ./ci/docker.sh
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
after_script:
# Check how much free disk space left after the build
- df -h