From 1dc7ee7ac695c2668813f03e7dc1e8dc71a5edf7 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 29 Jun 2018 20:20:30 +0200 Subject: [PATCH] travis builds windows binaries in docker --- .travis.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c5801c39..a68aaed8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,18 +24,16 @@ jobs: include: - stage: binary builds sudo: true + language: c + python: false env: - TARGET_OS=Windows - python: 3.6 + services: + - docker install: - - sudo dpkg --add-architecture i386 - - wget -nc https://dl.winehq.org/wine-builds/Release.key - - sudo apt-key add Release.key - - sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ - - sudo apt-get update -qq - - sudo apt-get install -qq winehq-stable dirmngr gnupg2 p7zip-full mingw-w64 - before_script: ls -lah /tmp/electrum-build - script: ./contrib/build-wine/build.sh $TRAVIS_COMMIT + - sudo docker build --no-cache -t electrum-wine-builder-img ./contrib/build-wine/docker/ + script: + - sudo docker run --name electrum-wine-builder-cont -v $PWD:/opt/electrum --rm --workdir /opt/electrum/contrib/build-wine electrum-wine-builder-img ./build.sh $TRAVIS_COMMIT after_success: true - os: osx language: c