forked from livenet123/Newton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 1.95 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
sudo: true
language: cpp
matrix:
include:
# Ubuntu, g++-7
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libboost1.55-all-dev
- g++-7
- gcc-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- LABEL="linux-g++-7"
- Deploy ="true"
# OSX, clang
- os: osx
osx_image: xcode10
compiler: clang
addons:
homebrew:
packages:
- boost
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- LABEL="osx-clang"
- Deploy ="true"
before_install:
- eval $MATRIX_EVAL
- if [ $TRAVIS_OS_NAME = osx ]; then brew cask uninstall --force oclint || true ; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc@7 ; fi
script:
- eval $MATRIX_EVAL
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release .. && make
before_deploy:
- cd src
- mkdir Newton-${TRAVIS_TAG}
- mv Newtond miner simplewallet walletd connectivity_tool Newton-${TRAVIS_TAG}/
- tar cvfz NewtonCLI-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.tar.gz Newton-${TRAVIS_TAG}/
deploy:
provider: releases
api_key:
secure: xqOe+b0vzsfzjE4YsViKTKZNbMEDsrkCmObp4CVKoe3BUyBroImZscV5cbGW08ZQlXrZESE1H4a+eDAoaelpMOgKhz1rdCl6Do6IGLzoWSZyY5dslEWuUaWmJ0BmdsFdD5r77WnUd049po0wbrKYl43sjWPxpufndSW9T3dPTQuyRtV0KuD9nGJCjroy1JV1ZLiIc6uQ7PmXR4B2GQEXf+CQ0eMFyHSx1I/PBhkug+RtmE9AvTjd5vxQ7JizSeub3lv/ofgu8XKxxIjSqT4guuMktOw7V4Wl+umrYAsmcPFQOxXqGsB0aRGo/xFM6O4s1Qv4UphbxQXdH0cTLvO9da729EXVeu0R7/C878UC171MQ5xTin9lD1T569ZNo0JaOcgnp2KPQdsgO9qQZ3rDd2lzO23UVEjBXq3uOB0fCe03YzyCrjPyvkWfEd5tQnBs9JKdp9WhzMWugOsAQwgEE/C9UPGA5cPJFBj541DQc+qZu63B2r0AeeZeSeOZXkYY9S5oUuhnZX1k8nYQsioCs8IHTeVq5tq1C6YDj5NJwkI2gJ66jwxB63ETlHwjSVzhvse9sGfYkqcl5Azug6ifPn8DuQww9CZiRRDVYdVVs9bjSSK8/sRjJkkjWK7CFu+j9GFnDW/vekm/4QL+gj2WL1Mjf6YhAioX4yeJryyLvTo=
file:
- NewtonCLI-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.tar.gz
skip_cleanup: true
on:
repo: livenet123/Newton
tags: true
condition: "$DEPLOY = true"