forked from kondratyev-nv/vscode-python-test-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (56 loc) · 1.25 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
language: python
env:
global:
- ENABLE_TEST_LOGGING=1
matrix:
include:
- os: linux
dist: xenial
python: "2.7"
env: TOXENV=py27
- os: linux
dist: xenial
python: "3.6"
env: TOXENV=py36
- os: linux
dist: xenial
python: "3.7"
env: TOXENV=py37
- os: osx
language: generic
env: PYTHON=2.7.16 TOXENV=py27
- os: osx
language: generic
env: PYTHON=3.6.8 TOXENV=py36
- os: osx
language: generic
env: PYTHON=3.7.3 TOXENV=py37
services:
- xvfb
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sleep 3;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew upgrade pyenv;
eval "$(pyenv init -)";
pyenv install $PYTHON;
pyenv global $PYTHON;
python --version;
fi
install:
- python -m pip install --upgrade pip
- python -m pip install --upgrade tox setuptools
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install 8.9.1
- nvm use 8.9.1
- npm install npm@latest -g
- npm ci
before_script:
- npm run lint
- travis_retry npm audit --production
script:
- python -m tox -e $TOXENV