forked from devontee33/bitprim-insight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
126 lines (108 loc) · 3.34 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
language: csharp
sudo: required
dist: trusty
branches:
only:
- dev
- /^v\d+\.\d+\.\d+$/
- /^release-\d+\.\d+\.\d+$/
- /^feature-ci-.+$/
- /^feature_ci_.+$/
configuration:
- Release
env:
- CLI_VERSION=latest
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
linux: &linux
os: linux
sudo: required
language: python
python: "3.6"
osx: &osx
os: osx
language: csharp
mono:
- latest
dotnet: 2.1.4
matrix:
include:
- <<: *linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gcc-4.9
env: MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- <<: *osx
osx_image: xcode8.3
env: TRAVIS_PYTHON_VERSION=3.6 PYTHON_FULL_VERSION=3.6.2
before_install:
- |
if test "$TRAVIS_OS_NAME" == "osx"; then
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/;
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/;
else
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -qq
fi
git fetch --unshallow # Travis always does a shallow clone, but GitVersion needs the full history including branches and tags
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
install:
- |
if [[ "${TRAVIS_OS_NAME}" != "linux" ]]; then
brew update || brew update
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
brew install cmake || true
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
pyenv install --list
pyenv install $PYTHON_FULL_VERSION
pyenv virtualenv $PYTHON_FULL_VERSION conan
pyenv rehash
pyenv activate conan
fi
pip install --upgrade pip
pip install conan_package_tools --upgrade
pip install conan=1.7.4
pip install wheel --upgrade
pip install twine --upgrade
conan user
if test "$TRAVIS_OS_NAME" != "osx"; then
# Install .NET Core 2.x
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update -y
sudo apt-get install dotnet-sdk-2.0.2 -y
sudo apt-get install -qq g++-4.9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90
gcc --version
g++ --version
sudo ldconfig
# Install Mono, only to run cake
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https
echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel
fi
script:
- |
chmod +x build.sh
./build.sh --coin="BTC"
./build.sh --coin="BCH"