-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
122 lines (108 loc) · 3.82 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
git:
depth: false
matrix:
include:
# ###############################################################################
# # OSX Debug
# ###############################################################################
# - os: osx
# language: cpp
# osx_image: xcode9.3
# before_install:
# - export TZ=Etc/GMT-3
# - brew unlink cmake
# - brew unlink boost
# - brew install cmake boost
# - export OPENSSL_ROOT_DIR="/usr/local/opt/openssl"
# env:
# - BUILD_TYPE=Debug
# - OS_FOLDER=mac
# script:
# - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make -j 4;
# ###############################################################################
# # OSX Release
# ###############################################################################
# - os: osx
# language: cpp
# osx_image: xcode9.3
# before_install:
# - export TZ=Etc/GMT-3
# - brew unlink cmake
# - brew unlink boost
# - brew install cmake boost
# - export OPENSSL_ROOT_DIR="/usr/local/opt/openssl"
# env:
# - BUILD_TYPE=Release
# - OS_FOLDER=mac
# script:
# - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make -j 4;
###############################################################################
# Linux Debug
###############################################################################
- os: linux
language: cpp
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libboost-all-dev
- libssl-dev
- curl
before_install:
- export TZ=Etc/GMT-3
- sudo apt install ocl-icd-* opencl-headers
- wget "https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.sh"
- sudo sh cmake-3.12.0-Linux-x86_64.sh --skip-license --prefix=/usr
- eval "CC=gcc-7 && CXX=g++-7"
env:
- BUILD_TYPE=Debug
- OS_FOLDER=linux
script:
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make -j 4 -f Makefile;
###############################################################################
# Linux Release
###############################################################################
- os: linux
language: cpp
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libboost-all-dev
- libssl-dev
- curl
- libxi-dev
- libcups2-dev
before_install:
- export TZ=Etc/GMT-3
- sudo apt install ocl-icd-* opencl-headers
- wget "https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.sh"
- sudo sh cmake-3.12.0-Linux-x86_64.sh --skip-license --prefix=/usr
- eval "CC=gcc-7 && CXX=g++-7"
env:
- BUILD_TYPE=Release
- OS_FOLDER=linux
script:
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make -j 4 -f Makefile;
###############################################################################
# Common part
###############################################################################
# TODO: version detection should be in one place
before_script:
- BEAM_VERSION="1.0.$(git rev-list HEAD --count)"
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
after_success:
# deploy using ftp server
- BUILDS_SERVER_PATH=${BUILD_SERVER}/files/$TRAVIS_BRANCH/$(date +%Y.%m.%d)/$BUILD_TYPE/$OS_FOLDER
- tar -cvzf opencl-miner-$BEAM_VERSION.tar.gz --directory=$HOME/build/BeamMW/opencl-miner beam-opencl-miner
# upload binaries to FTP
- curl --retry 3 --ftp-create-dirs -T opencl-miner-$BEAM_VERSION.tar.gz $BUILDS_SERVER_PATH/
notifications:
email: