-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
93 lines (85 loc) · 2.36 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
os: linux
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
matrix:
include:
- os: osx
language: generic
env: PYTHON=2.7.15 PYTHON_VERSION=2.7
- os: osx
language: generic
env: PYTHON=3.4.9 PYTHON_VERSION=3.4
- os: osx
language: generic
env: PYTHON=3.5.6 PYTHON_VERSION=3.5
- os: osx
language: generic
env: PYTHON=3.6.7 PYTHON_VERSION=3.6
- os: osx
language: generic
env: PYTHON=3.7.1 PYTHON_VERSION=3.7
- os: windows
language: shell
before_install:
- choco install python2
- python -m pip install --upgrade pip
env:
- PATH=/c/Python27:/c/Python27/Scripts:$PATH
- HOMEPATH=\\Users\\travis
- HOMEDRIVE='C:'
- os: windows
language: shell
before_install:
- choco install python --version 3.5.4
- python -m pip install --upgrade pip
env:
- PATH=/c/Python35:/c/Python35/Scripts:$PATH
- HOMEPATH=\\Users\\travis
- HOMEDRIVE='C:'
- os: windows
language: shell
before_install:
- choco install python --version 3.6.7
- python -m pip install --upgrade pip
env:
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
- HOMEPATH=\\Users\\travis
- HOMEDRIVE='C:'
- os: windows
language: shell
before_install:
- choco install python --version 3.7.2
- python -m pip install --upgrade pip
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- HOMEPATH=\\Users\\travis
- HOMEDRIVE='C:'
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install openssl readline
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
fi
python --version
install:
- echo $VIRGIL_APP_KEY_CONTENT_V5 > ~/tests.virgilkey
- pip install virgil-crypto
- pip install .
script:
- pwd
- python -c "import platform; print(platform.system()); import os; print(os.getenv(\"HOME\")); print(os.getenv(\"HOMEPATH\")); print(os.getenv(\"HOMEDRIVE\"))"
- python -m unittest discover -s virgil_sdk/tests -p "*_test.py"
notifications:
email:
- const_ant_in@virgilsecurity.com