forked from ctubio/Krypto-trading-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (65 loc) · 4.38 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
sudo: required
dist: trusty
#osx_image: xcode7.3
os:
- linux
# - osx
language: cpp
compiler: gcc
node_js:
- node
branches:
only: master
git:
depth: false
env:
global:
- secure: "IT/yrxrotW+NYPYN9AZ0StBU2gCkX63hhmhmfj4fmo3hOLOI9itmnbRm70u/EmFgOAKMUynNp+HZjn0kMH8MOFfGoMoalQ86OEH28BU9itPevTf35cMApb4yGfhXrsAZOChVgEKg3jvxQyLfa281KoiOCfwz3rS5RXGCNZeQtRUdIIKgTfWoBquLccblCfZHo4icFCAJknbvr93phvam2owabJ7FSOKI4MgWyQPV6GQakeDbH6N5jPEIZC/h2wVUS5/BM0iWY8mMCQda3zLj551PFxv1pcTcNH29UHP7u87n+jD6RoWoI38fIrfHsnLLtgckrQauHduKe4m/17TdXaYpmlLFv72xujyHrMJ/3uPltvwUc8Vt0oVSo5IC2M6dc1F4+A20owTwA5YBR9vWi/C+MxfsSE7L/lyFzWACZCTZOgeGGai8smMxLTbhOL5oJeQfsO7UbM4uGiKSeEU9lqFBuDHQI+dSqvflVrAmCGH6sDBrZ0kECewVqK6i5GVRzFkIVtDZ7MJVnM+gtc6ORjLrepBykeG2YFH+X9d7zn9wxVA7bPa+73/62qrdQcTfmvjcJetwXwzu7sUiOVR2lh+bfiJ1X/KPEFffR6vfjYaPdXOER/Rcopa0vf7w7+DrXZe32Qw9WkSEbCmwBzUnzHALo3PQxTfRDrlOiu6BDpI="
- secure: "xtNyYGBGhXoi96YuBLMawCTJNNfUkj++Jre+W6OWHQ/7JytqJK77OTifKd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cI1YSEPGB+bisyygX4ibEqEOXvcVY2Px2Xd/SLW48L/KVNJWlwjt1+mn+qaykzhtFUNd5/PGwqpH2Ua435Fnb/focwx0QXEaWRqdYzQuy+l1wKYs2DlimZNEy0yr//pdoWW7oaWjKGWRrhMY5LStRHJf7/bkUlYKw83U0rYo8USrnJJYgBu8pG6XIcf7dH0MKqIAbrcoioF2KNjWy7P1o2Gp4B3EuckfY="
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-6', 'lcov', 'cowsay']
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 50
sudo update-alternatives --install /usr/bin/x86_64-linux-gnu-g++ x86_64-linux-gnu-g++ /usr/bin/x86_64-linux-gnu-g++-6 50
npm install
gem install coveralls-lcov
npm install -g codacy-coverage npm-check-updates
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew install --with-default-names gnu-sed
fi
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
yes 1 | make install
make dist bundle
make pvs || :
_() { git cat-file blob $1 > $1.asc && echo $TRAVIS_DEPLOY | gpg --passphrase-fd 0 $1.asc; }
_ Kira
_ Bender
. Bender > /dev/null 2>&1
ncu | sed '/^\s*$/d' | /usr/games/cowsay -nW80 -fduck
make test-c 2>&1 | sed '/Total messages/d' | sed '/Help: The documentation/d' | /usr/games/cowsay -nW160 -felephant || :
KUNITS=1 make
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
yes 4 | make install
else
yes 5 | make install
fi
script: make test | /usr/games/cowsay -nW160 -fbud-frogs && test ${PIPESTATUS[0]} -eq 0
after_success:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
lcov --directory . --capture --output-file coverage.info > /dev/null 2>&1
lcov --remove coverage.info '/usr/*' '*local/include/*' --output-file coverage.info > /dev/null 2>&1
coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info > /dev/null 2>&1
cat coverage.info | codacy-coverage --language cpp > /dev/null 2>&1
lcov --list coverage.info | /usr/games/cowsay -nW80 -fdefault
fi
notifications:
email:
on_success: never