Commit 6067286b authored by rusty1s's avatar rusty1s
Browse files

fix os and windows

parent cb3493fd
...@@ -91,12 +91,10 @@ jobs: ...@@ -91,12 +91,10 @@ 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
- pip install flake8 - pip install flake8 codecov
- pip install codecov
- python setup.py install - python setup.py install
script: script:
......
...@@ -11,10 +11,13 @@ if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ...@@ -11,10 +11,13 @@ 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=/Users/travis/miniconda3/bin:${PATH}
fi fi
if [ "${TRAVIS_OS_NAME}" = "windows" ]; then if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
choco install miniconda3 choco install miniconda3
PATH=/c/tools/miniconda3/Scripts:$PATH
fi fi
conda update --yes conda
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