forked from 1200wd/bitcoinlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (57 loc) · 1.85 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
language: python
matrix:
include:
- python: 3.6
dist: xenial
env:
- BCL_CONFIG_FILE=config.ini.unittest
# Test ecdsa and pyscrypt for systems where fastecdsa and/or scrypt are not available
- python: 3.7
dist: bionic
env:
- USING_MODULE_SCRYPT=False
- USE_FASTECDSA=False
- BCL_CONFIG_FILE=config.ini.unittest
before_script:
- pip install ecdsa
- pip install pyscrypt
# Enable 3.8 without globally enabling sudo and dist: xenial for other build jobs
- python: 3.8
dist: xenial
env:
- UNITTESTS_FULL_DATABASE_TEST=True
- BCL_CONFIG_FILE=config.ini.unittest
- python: 3.9
dist: focal
env:
- BCL_CONFIG_FILE=config.ini.unittest
- os: windows
language: sh
python: "3.8"
env:
- BCL_CONFIG_FILE=config.ini.unittest
before_install:
- choco install python --version=3.8.4
- choco install postgresql --params '/Password:postgres' --paramsglobal
- choco install mysql
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- python -m pip install --upgrade pip wheel
- python -m pip install win-unicode-console
- PYTHONIOENCODING=:replace
before_install:
- sudo apt-get install -y postgresql postgresql-contrib
- sudo apt-get install -y mysql-server
- sudo service postgresql start
- sudo service mysql start
install:
- pip install coveralls
- pip install psycopg2
- pip install mysql-connector
- pip install mysqlclient
- pip install parameterized
- python setup.py install
script:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then coverage run --source=bitcoinlib setup.py test ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python setup.py test ; fi
after_script:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then coveralls ; fi