travis fixups

This commit is contained in:
Lex Berezhny 2019-06-20 17:07:22 -04:00
parent 5bbba0b65a
commit 38331b8918

View file

@ -89,18 +89,19 @@ jobs:
env: OS=linux
install:
- pip3 install pyinstaller
- cd torba && pip3 install -e .
- cd lbry && python3 scripts/set_build.py
- cd lbry && pip3 install -e .
- cd torba && pip3 install -e . && cd ../lbry
- python3 scripts/set_build.py
- pip3 install -e .
script:
- cd lbry && pyinstaller -F -n lbrynet lbrynet/extras/cli.py
- chmod +x lbry/dist/lbrynet
- zip -j dist/lbrynet-${OS}.zip lbry/dist/lbrynet
- ./lbry/dist/lbrynet --version
- cd lbry
- pyinstaller -F -n lbrynet lbrynet/extras/cli.py
- chmod +x dist/lbrynet
- zip -j dist/lbrynet-${OS}.zip dist/lbrynet
- ./dist/lbrynet --version
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: dist/lbrynet-${OS}.zip
file: lbry/dist/lbrynet-${OS}.zip
skip_cleanup: true
overwrite: true
draft: true
@ -124,23 +125,23 @@ jobs:
cache: false
before_install:
- brew upgrade python || true
- brew upgrade python || true
- if: tag IS present
stage: build
#- if: tag IS present
- stage: build
name: "Wallet Server Docker Image - Tagged Release"
script:
- set -e
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
- travis_retry docker build -t lbry/wallet-server:$TRAVIS_TAG -f scripts/Dockerfile.wallet_server --build-arg TORBA_VERSION=${TORBA} .
- docker push lbry/wallet-server:$TRAVIS_TAG
- if: tag IS blank AND branch = master AND NOT type IN (pull_request)
stage: build
#- docker push lbry/wallet-server:$TRAVIS_TAG
#- if: tag IS blank AND branch = master AND NOT type IN (pull_request)
- stage: build
name: "Wallet Server Docker Image - Master"
script:
- set -e
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
- travis_retry docker build -t lbry/wallet-server:master -f scripts/Dockerfile.wallet_server --build-arg TORBA_VERSION=${TORBA} .
- docker push lbry/wallet-server:master
#- docker push lbry/wallet-server:master
cache:
directories: