2018-08-09 20:42:48 +02:00
|
|
|
dist: xenial
|
2014-06-25 08:49:33 +02:00
|
|
|
language: python
|
|
|
|
|
python:
|
2018-01-07 22:36:34 +01:00
|
|
|
- 3.6
|
2018-08-09 20:42:48 +02:00
|
|
|
- 3.7
|
2018-10-26 15:34:46 +02:00
|
|
|
git:
|
|
|
|
|
depth: false
|
2018-05-24 18:57:13 +02:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
sources:
|
|
|
|
|
- sourceline: 'ppa:tah83/secp256k1'
|
|
|
|
|
packages:
|
|
|
|
|
- libsecp256k1-0
|
2018-10-26 15:34:46 +02:00
|
|
|
before_install:
|
2019-03-11 21:00:29 +01:00
|
|
|
- sudo add-apt-repository -y ppa:bitcoin/bitcoin
|
|
|
|
|
- sudo apt-get -qq update
|
|
|
|
|
- sudo apt-get install -yq bitcoind
|
2018-10-26 15:34:46 +02:00
|
|
|
- git tag
|
2015-07-02 10:04:02 +03:00
|
|
|
install:
|
2018-02-11 16:27:01 +01:00
|
|
|
- pip install -r contrib/requirements/requirements-travis.txt
|
2019-03-11 21:00:29 +01:00
|
|
|
- pip install electrumx
|
2018-01-07 22:36:34 +01:00
|
|
|
cache:
|
2018-03-02 20:08:30 +01:00
|
|
|
- pip: true
|
|
|
|
|
- directories:
|
|
|
|
|
- /tmp/electrum-build
|
2019-03-11 21:00:29 +01:00
|
|
|
before_script:
|
|
|
|
|
- electrum/tests/regtest/start_bitcoind.sh
|
|
|
|
|
- electrum/tests/regtest/start_electrumx.sh
|
2015-07-02 10:04:02 +03:00
|
|
|
script:
|
2015-07-02 12:31:14 +03:00
|
|
|
- tox
|
2017-05-18 21:04:09 +02:00
|
|
|
after_success:
|
2019-07-03 16:19:06 +02:00
|
|
|
- if [ "$TRAVIS_BRANCH" = "master" ]; then pip install requests && contrib/push_locale; fi
|
2017-11-08 17:58:17 +01:00
|
|
|
- coveralls
|
2018-02-09 13:07:57 +01:00
|
|
|
jobs:
|
|
|
|
|
include:
|
2018-10-09 02:27:47 +02:00
|
|
|
- if: branch = master # don't build binaries on lightning branch
|
|
|
|
|
stage: binary builds
|
2018-12-05 19:03:46 +01:00
|
|
|
name: "Windows build"
|
2018-06-29 20:20:30 +02:00
|
|
|
language: c
|
|
|
|
|
python: false
|
2018-05-15 18:25:51 +02:00
|
|
|
env:
|
|
|
|
|
- TARGET_OS=Windows
|
2018-06-29 20:20:30 +02:00
|
|
|
services:
|
|
|
|
|
- docker
|
2018-02-09 13:07:57 +01:00
|
|
|
install:
|
2019-05-06 20:19:23 +02:00
|
|
|
- sudo docker build --no-cache -t electrum-wine-builder-img ./contrib/build-wine/
|
2018-06-29 20:20:30 +02:00
|
|
|
script:
|
2018-07-10 13:33:46 +02:00
|
|
|
- sudo docker run --name electrum-wine-builder-cont -v $PWD:/opt/wine64/drive_c/electrum --rm --workdir /opt/wine64/drive_c/electrum/contrib/build-wine electrum-wine-builder-img ./build.sh
|
2018-02-09 13:07:57 +01:00
|
|
|
after_success: true
|
2018-10-09 02:27:47 +02:00
|
|
|
- if: branch = master # don't build binaries on lightning branch
|
|
|
|
|
name: "Android build"
|
2018-12-05 19:03:46 +01:00
|
|
|
language: python
|
|
|
|
|
python: 3.7
|
|
|
|
|
services:
|
|
|
|
|
- docker
|
|
|
|
|
install:
|
2019-07-03 16:19:06 +02:00
|
|
|
- pip install requests && ./contrib/pull_locale
|
2018-12-05 19:03:46 +01:00
|
|
|
- ./contrib/make_packages
|
|
|
|
|
- sudo docker build --no-cache -t electrum-android-builder-img electrum/gui/kivy/tools
|
|
|
|
|
script:
|
|
|
|
|
- sudo chown -R 1000:1000 .
|
2018-12-06 16:23:24 +01:00
|
|
|
# Output something every minute or Travis kills the job
|
|
|
|
|
- while sleep 60; do echo "=====[ $SECONDS seconds still running ]====="; done &
|
2018-12-05 19:03:46 +01:00
|
|
|
- sudo docker run -it -u 1000:1000 --rm --name electrum-android-builder-cont -v $PWD:/home/user/wspace/electrum --workdir /home/user/wspace/electrum electrum-android-builder-img ./contrib/make_apk
|
2018-12-06 16:23:24 +01:00
|
|
|
# kill background sleep loop
|
|
|
|
|
- kill %1
|
2018-12-05 19:03:46 +01:00
|
|
|
- ls -la bin
|
|
|
|
|
- if [ $(ls bin | grep -c Electrum-*) -eq 0 ]; then exit 1; fi
|
|
|
|
|
after_success: true
|
2018-10-09 02:27:47 +02:00
|
|
|
- if: branch = master # don't build binaries on lightning branch
|
|
|
|
|
name: "MacOS build"
|
2018-12-05 19:03:46 +01:00
|
|
|
os: osx
|
2018-05-13 22:22:07 +02:00
|
|
|
language: c
|
2018-05-15 18:25:51 +02:00
|
|
|
env:
|
|
|
|
|
- TARGET_OS=macOS
|
2018-05-13 22:22:07 +02:00
|
|
|
python: false
|
2018-05-15 18:25:51 +02:00
|
|
|
install:
|
2018-05-15 19:48:35 +02:00
|
|
|
- git fetch --all --tags
|
2018-11-29 13:24:44 +01:00
|
|
|
script: ./contrib/osx/make_osx
|
2018-05-13 22:22:07 +02:00
|
|
|
after_script: ls -lah dist && md5 dist/*
|
|
|
|
|
after_success: true
|
2019-02-26 17:33:39 +01:00
|
|
|
- if: branch = master # don't build binaries on lightning branch
|
|
|
|
|
name: "AppImage build"
|
2019-01-29 21:21:18 +01:00
|
|
|
language: c
|
|
|
|
|
python: false
|
|
|
|
|
services:
|
|
|
|
|
- docker
|
|
|
|
|
install:
|
|
|
|
|
- sudo docker build --no-cache -t electrum-appimage-builder-img ./contrib/build-linux/appimage/
|
|
|
|
|
script:
|
|
|
|
|
- sudo docker run --name electrum-appimage-builder-cont -v $PWD:/opt/electrum --rm --workdir /opt/electrum/contrib/build-linux/appimage electrum-appimage-builder-img ./build.sh
|
|
|
|
|
after_success: true
|
2019-08-12 00:35:23 +02:00
|
|
|
- name: "Flake8 tests"
|
|
|
|
|
language: python
|
|
|
|
|
install: pip install flake8
|
|
|
|
|
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
2018-05-28 23:10:32 +02:00
|
|
|
- stage: release check
|
|
|
|
|
install:
|
|
|
|
|
- git fetch --all --tags
|
|
|
|
|
script:
|
|
|
|
|
- ./contrib/deterministic-build/check_submodules.sh
|
|
|
|
|
after_success: true
|
2018-07-10 13:33:46 +02:00
|
|
|
if: tag IS present
|