Commit cb3493fd authored by rusty1s's avatar rusty1s
Browse files

add windows

parent 06e7dd4d
...@@ -48,16 +48,11 @@ jobs: ...@@ -48,16 +48,11 @@ jobs:
env: env:
- IDX=cpu - IDX=cpu
- TOOLKIT="" - TOOLKIT=""
# - name: windows/cpu - name: windows/cpu
# os: windows os: windows
# language: shell env:
# env: - IDX=cpu
# - IDX=cpu - TOOLKIT=cpuonly
# - TORCH=${TORCH_VERSION}+${IDX}
# - PATH=/c/Python37:/c/Python37/Scripts:$PATH
# before_install:
# - choco install python --version 3.7.6
# - python -m pip install --upgrade --user pip
# - name: windows/cu92 # - name: windows/cu92
# os: windows # os: windows
# language: shell # language: shell
...@@ -96,6 +91,7 @@ jobs: ...@@ -96,6 +91,7 @@ jobs:
install: install:
- source script/install.sh - source script/install.sh
- source script/conda.sh - source script/conda.sh
- conda update --yes conda
- conda create --yes -n test python=3.7.6 - conda create --yes -n test python=3.7.6
- source activate test - source activate test
- conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
......
...@@ -5,15 +5,16 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ...@@ -5,15 +5,16 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
chmod +x miniconda.sh chmod +x miniconda.sh
./miniconda.sh -b ./miniconda.sh -b
PATH=/home/travis/miniconda3/bin:${PATH} PATH=/home/travis/miniconda3/bin:${PATH}
conda update --yes conda
fi fi
if [ "${TRAVIS_OS_NAME}" = "macosx" ]; then if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh chmod +x miniconda.sh
./miniconda.sh -b ./miniconda.sh -b
PATH=/home/travis/miniconda3/bin:${PATH} PATH=/home/travis/miniconda3/bin:${PATH}
conda update --yes conda
fi fi
if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
choco install miniconda3
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment