-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] refs #1 - Travis scripts to build on linux and osx
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
language: generic | ||
matrix: | ||
include: | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
env: | ||
- PROTOBUF_VERSION=3.4.0 | ||
- os: osx | ||
env: | ||
- PROTOBUF_VERSION=3.6.1 | ||
before_script: | ||
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then | ||
export PATH="$PATH:$(pwd)/protoc/bin" ; | ||
echo "PATH=$PATH"; | ||
fi | ||
# Install OS-specific dependencies | ||
- source "./ci-scripts/install-${TRAVIS_OS_NAME}.sh" | ||
# Upgrade protobuf python | ||
- pip3 install --user --upgrade protobuf | ||
- pip3 install --user "protobuf==${PROTOBUF_VERSION}" ecdsa | ||
- pip install --user --upgrade protobuf | ||
script: | ||
- make all | ||
notifications: | ||
# https://github.com/kvld/travisci-telegram TravisCI Telegram Bot integration | ||
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
# Install protobuf | ||
curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" | ||
mkdir protoc | ||
yes | unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d ./protoc | ||
find -name protoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
# Install protobuf | ||
brew install protobuf protobuf-c | ||
|