trying mac build

This commit is contained in:
Lex Berezhny 2018-07-26 19:01:44 -04:00 committed by Jack Robison
parent f31f1fa40b
commit 6c7128c0f6
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -7,58 +7,79 @@ python:
jobs: jobs:
include: include:
- stage: code quality # - stage: code quality
name: "pylint lbrynet" # name: "pylint lbrynet"
install: # install:
- pip install pylint # - pip install pylint
- pip install git+https://github.com/lbryio/torba.git # - pip install git+https://github.com/lbryio/torba.git
- pip install git+https://github.com/lbryio/lbryschema.git # - pip install git+https://github.com/lbryio/lbryschema.git
- pip install -e . # - pip install -e .
script: pylint lbrynet # script: pylint lbrynet
#
- stage: test # - stage: test
name: "Unit Tests" # name: "Unit Tests"
install: # install:
- pip install coverage # - pip install coverage
- pip install git+https://github.com/lbryio/torba.git # - pip install git+https://github.com/lbryio/torba.git
- pip install git+https://github.com/lbryio/lbryschema.git # - pip install git+https://github.com/lbryio/lbryschema.git
- pip install -e .[test] # - pip install -e .[test]
script: HOME=/tmp coverage run --source=lbrynet -m twisted.trial tests.unit # script: HOME=/tmp coverage run --source=lbrynet -m twisted.trial tests.unit
#script: HOME=/tmp coverage run --source=lbrynet -m twisted.trial tests.functional tests.unit # #script: HOME=/tmp coverage run --source=lbrynet -m twisted.trial tests.functional tests.unit
after_success: # after_success:
- bash <(curl -s https://codecov.io/bash) # - bash <(curl -s https://codecov.io/bash)
#
- name: "Integration Tests" # - name: "Integration Tests"
install: # install:
- pip install tox-travis coverage # - pip install tox-travis coverage
- pushd .. && git clone https://github.com/lbryio/electrumx.git --branch lbryumx && popd # - pushd .. && git clone https://github.com/lbryio/electrumx.git --branch lbryumx && popd
- pushd .. && git clone https://github.com/lbryio/orchstr8.git && popd # - pushd .. && git clone https://github.com/lbryio/orchstr8.git && popd
- pushd .. && git clone https://github.com/lbryio/lbryschema.git && popd # - pushd .. && git clone https://github.com/lbryio/lbryschema.git && popd
- pushd .. && git clone https://github.com/lbryio/lbryumx.git && popd # - pushd .. && git clone https://github.com/lbryio/lbryumx.git && popd
- pushd .. && git clone https://github.com/lbryio/torba.git && popd # - pushd .. && git clone https://github.com/lbryio/torba.git && popd
script: tox # script: tox
after_success: # after_success:
- coverage combine tests/ # - coverage combine tests/
- bash <(curl -s https://codecov.io/bash) # - bash <(curl -s https://codecov.io/bash)
#
# - stage: build
# name: "Windows"
# services:
# - docker
# install:
# - docker pull cdrx/pyinstaller-windows:python3-32bit
# script:
# - docker run -v "$(pwd):/src/lbry" cdrx/pyinstaller-windows:python3-32bit lbry/scripts/wine_build.sh
# addons:
# artifacts:
# working_dir: dist
# paths:
# - lbry.exe
# target_paths:
# - /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/win
#
# - name: "Linux"
# install:
# - pip install pyinstaller
# - pip install git+https://github.com/lbryio/torba.git
# - pip install git+https://github.com/lbryio/lbryschema.git
# - pip install -e .
# script:
# - pyinstaller -F -n lbry lbrynet/cli.py
# - ./dist/lbry --version
# addons:
# artifacts:
# working_dir: dist
# paths:
# - lbry
# target_paths:
# - /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/linux
- stage: build - stage: build
name: "Windows" name: "Mac"
services: os: osx
- docker osx_image: xcode9.4
install:
- docker pull cdrx/pyinstaller-windows:python3-32bit
script:
- docker run -v "$(pwd):/src/lbry" cdrx/pyinstaller-windows:python3-32bit lbry/scripts/wine_build.sh
addons:
artifacts:
working_dir: dist
paths:
- lbry.exe
target_paths:
- /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/win
- name: "Linux"
install: install:
- brew install python
- pip install pyinstaller - pip install pyinstaller
- pip install git+https://github.com/lbryio/torba.git - pip install git+https://github.com/lbryio/torba.git
- pip install git+https://github.com/lbryio/lbryschema.git - pip install git+https://github.com/lbryio/lbryschema.git
@ -72,7 +93,7 @@ jobs:
paths: paths:
- lbry - lbry
target_paths: target_paths:
- /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/linux - /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/mac
cache: cache:
directories: directories: