Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ after_success:
- npm run coverage

before_deploy:
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
- npm run prebuild
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
- ./scripts/travis-before-deploy

deploy:
provider: releases
Expand Down
17 changes: 17 additions & 0 deletions scripts/travis-before-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -ex
Comment thread
vweevers marked this conversation as resolved.
Outdated

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
ARCHIVE_NAME="${TRAVIS_TAG:-latest}-linux-and-cross-compiled.tar"
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
ARCHIVE_NAME="${TRAVIS_TAG:-latest}-osx-`uname -m`.tar"
fi

npm run prebuild

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
npm run prebuildify-cross-armv7
fi

tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .