Skip to content

Commit

Permalink
Merge pull request #170 from MysteriumNetwork/improvement/build-artif…
Browse files Browse the repository at this point in the history
…acts-for-macos-and-linux

Improvement/build artifacts for macos and linux
  • Loading branch information
donce committed Feb 21, 2018
2 parents edfe01f + 8cbd742 commit cedbf08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
@@ -1,6 +1,10 @@
sudo: false
language: go

os:
- linux
- osx

go:
- 1.9.2
go_import_path: github.com/mysterium/node
Expand Down Expand Up @@ -45,7 +49,7 @@ deploy:
skip-cleanup: true
github-token: "$GIT_RELEASES_API_KEY"
keep-history: false
target-branch: master
target-branch: mysterium #each project should use separate branch for artifact storage as each branch will force pushed - no history is preserved
repo: MysteriumNetwork/build-artifacts
on:
branch: master
Expand Down
10 changes: 8 additions & 2 deletions bin/travis_scripts/ensure_glide.sh
Expand Up @@ -3,10 +3,16 @@
TOOLS_PATH=$1
GLIDE_VERSION=$2


OS_ARCH="linux-amd64"
if [ "$TRAVIS_OS_NAME"=="osx" ]; then
OS_ARCH="darwin-amd64"
fi

glide --version
if [ $? -eq 0 ]; then
echo "Glide found"
else
wget "https://github.com/Masterminds/glide/releases/download/$GLIDE_VERSION/glide-$GLIDE_VERSION-linux-amd64.tar.gz"
tar -vxz -C $TOOLS_PATH --strip=1 -f glide-$GLIDE_VERSION-linux-amd64.tar.gz
wget "https://github.com/Masterminds/glide/releases/download/$GLIDE_VERSION/glide-$GLIDE_VERSION-$OS_ARCH.tar.gz"
tar -vxz -C $TOOLS_PATH --strip=1 -f glide-$GLIDE_VERSION-$OS_ARCH.tar.gz
fi

0 comments on commit cedbf08

Please sign in to comment.