Skip to content

Commit d6891ad

Browse files
add windows support in .travis.yml (#225)
1 parent 74ad1e1 commit d6891ad

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ matrix:
99
- os: linux
1010
dist: trusty
1111
python: "3.6"
12+
- os: windows
13+
language: shell
1214

1315
addons:
1416
apt:
@@ -18,8 +20,17 @@ addons:
1820

1921
before_install:
2022
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PATH="$HOME/Library/Python/3.6/bin:$PATH"; fi
21-
- pip3 install --user setuptools --upgrade
22-
- pip3 install --user vim-vint typing
23+
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
24+
pip3 install --user setuptools --upgrade;
25+
pip3 install --user vim-vint typing;
26+
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
27+
powershell -Command "Set-ExecutionPolicy RemoteSigned -scope CurrentUser";
28+
powershell -Command "iex (new-object net.webclient).downloadstring('https://get.scoop.sh')";
29+
export PATH="$HOME/scoop/shims:$PATH;";
30+
export PATH="$APPDATA/Python/Python37/Scripts:$PATH;";
31+
powershell -Command "scoop install python";
32+
python3 -m pip install --user vim-vint typing;
33+
fi
2334

2435
before_script:
2536
- uname -a

0 commit comments

Comments
 (0)