forked from ibbtco/electrum-dash
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
77 lines (77 loc) · 3.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
sudo: required
language: python
services:
- docker
addons:
apt:
sources:
- sourceline: 'ppa:tah83/secp256k1'
packages:
- libusb-1.0-0-dev
- libudev-dev
- libsecp256k1-0
matrix:
include:
- if: tag =~ .+
os: osx
language: ruby
osx_image: xcode7.3
- os: linux
python: "3.4"
- os: linux
python: "3.5"
- if: NOT tag =~ .+
os: linux
python: "3.6"
before_install:
- source contrib/pac/travis/electrum_PAC_version_env.sh
- echo electrum-pac version is $PAC_ELECTRUM_VERSION
- mkdir -p build && cp contrib/pac/travis/* ./build/
- if [[ -n $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'osx' ]]; then
./build/before_install-osx.sh;
fi
- if [[ -n $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then
./build/before_install-linux.sh;
fi
- if [[ -n $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then
./build/before_install-linux-apk.sh;
fi
install:
- if [[ -z $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'linux' ]]; then
pip install tox; pip install tox-travis;
fi
script:
#- if [[ -z $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'linux' ]];then
# tox;
# fi
- if [[ -n $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'osx' ]]; then
./build/travis-build-osx.sh ;
fi
- if [[ -n $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then
./build/travis-build-linux.sh;
fi
- if [[ -n $TRAVIS_TAG ]] && [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then
./build/travis-build-linux-apk.sh;
fi
deploy:
- provider: releases
api_key:
secure: lzu/ZNdGdgWe2ITNR4ShRKKAjRYVLFnAGL8hOUUYhmvDaJ5xZGYtDq1lBZLc29++l/7yu0iPsgTgP5hSR9kgR19cUiKEGzX8j65hkxPGdItVkhw43gRuQyn1xGRvU/kitaJgcRmpJgEOV1YZKn0Hgjpy8KJmr2cE5tMgQSyiDDofGAKNfUtaVckvjkLkTGYoTTNF7DNK4jYL/TT/8Vox9W6pyJz8eV2sdLyO0Z6GO7/f954yD7Nus8BQNNI7HR9G2bIsNPgsZ23TMPnon2i9f7tgNzzxjeT5Dk1jRwDFeGcAp9K8w3UETIcbtSIVT8tOlC66ejDIfdGnuBj0GUF9eLMlXExjzcUTCjZcz/rdtuLr5gd9ugN1qi9w9CEhiEPEP0moUOTGLEpzR6sv7/rXT8IQTaFPSWUmFIplrXwUXoDRqhvGkwlOF2lWR2AmcND1HxJrOHCU60AzeMiLTvFMtkBNq9IliNjpbLTcpxLjry3JpY7yjuOOTCujnfEOzhw1HzRN+snfAo/OAbK8/dOnSVQNt0G/8nA/IUqZZFnkx50dfdjg7sRT8mjzHbunBfhjsQYI/IZz9BvmCgZmwc+p9k+EW+aG1aWRPcMBOyXbTybj5UVYTKvwHPXhHXJWT2Wi5zkqKOtI+w/6jRVQ3godO0AstUYnjQYJBdwsjZ8RcE0=
file:
- build/electrum-PAC/dist/Pac-Electrum-$PAC_ELECTRUM_VERSION-macosx.dmg
on:
repo: PACCommunity/electrum-PAC
tags: true
condition: "$TRAVIS_OS_NAME = osx"
- provider: releases
api_key:
secure: lzu/ZNdGdgWe2ITNR4ShRKKAjRYVLFnAGL8hOUUYhmvDaJ5xZGYtDq1lBZLc29++l/7yu0iPsgTgP5hSR9kgR19cUiKEGzX8j65hkxPGdItVkhw43gRuQyn1xGRvU/kitaJgcRmpJgEOV1YZKn0Hgjpy8KJmr2cE5tMgQSyiDDofGAKNfUtaVckvjkLkTGYoTTNF7DNK4jYL/TT/8Vox9W6pyJz8eV2sdLyO0Z6GO7/f954yD7Nus8BQNNI7HR9G2bIsNPgsZ23TMPnon2i9f7tgNzzxjeT5Dk1jRwDFeGcAp9K8w3UETIcbtSIVT8tOlC66ejDIfdGnuBj0GUF9eLMlXExjzcUTCjZcz/rdtuLr5gd9ugN1qi9w9CEhiEPEP0moUOTGLEpzR6sv7/rXT8IQTaFPSWUmFIplrXwUXoDRqhvGkwlOF2lWR2AmcND1HxJrOHCU60AzeMiLTvFMtkBNq9IliNjpbLTcpxLjry3JpY7yjuOOTCujnfEOzhw1HzRN+snfAo/OAbK8/dOnSVQNt0G/8nA/IUqZZFnkx50dfdjg7sRT8mjzHbunBfhjsQYI/IZz9BvmCgZmwc+p9k+EW+aG1aWRPcMBOyXbTybj5UVYTKvwHPXhHXJWT2Wi5zkqKOtI+w/6jRVQ3godO0AstUYnjQYJBdwsjZ8RcE0=
file:
- build/electrum-PAC/dist/Pac-Electrum-$PAC_ELECTRUM_VERSION.tar.gz
- build/electrum-PAC/dist/Pac-Electrum-$PAC_ELECTRUM_VERSION-setup-win32.exe
- build/electrum-PAC/dist/Pac-Electrum-$PAC_ELECTRUM_VERSION-setup-win64.exe
- build/electrum-PAC/bin/Electrum_PAC-$PAC_ELECTRUM_APK_VERSION-release-unsigned.apk
on:
repo: PACCommunity/electrum-PAC
tags: true
condition: "$TRAVIS_OS_NAME = linux"