Skip to content

Commit

Permalink
[ci] refs #1 - Travis scripts to build on linux and osx
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed Feb 27, 2019
1 parent 16f98da commit 9aebd67
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
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

10 changes: 10 additions & 0 deletions ci-scripts/install-linux.sh
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

7 changes: 7 additions & 0 deletions ci-scripts/install-osx.sh
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

0 comments on commit 9aebd67

Please sign in to comment.