File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ matrix:
2121 - python : pypy
2222 - python : pypy3
2323
24+ cache :
25+ pip : true
26+ directories :
27+ - $HOME/.cache/pypoetry
28+
2429before_install :
2530 - pip install codecov
2631
@@ -38,10 +43,10 @@ install:
3843 virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
3944 source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
4045 fi
41- - virtualenv --python="$HOME/virtualenv/python3.6/bin/python" "$HOME/virtualenvs/venv -poetry"
42- - $HOME/virtualenvs/venv -poetry/bin/pip install poetry --pre
43- - $HOME/virtualenvs/venv-poetry/bin/ poetry install -v
44- - $HOME/virtualenvs/venv-poetry/bin/ poetry build -v
46+ - wget https://raw.githubusercontent.com/sdispater/poetry/master/get -poetry.py
47+ - python get -poetry.py --preview
48+ - poetry install -v
49+ - poetry build -v
4550 - |
4651 if [ "$PENDULUM_EXTENSIONS" == "1" ]; then
4752 find dist/ -iname pendulum*.whl -exec unzip -o {} 'pendulum/*' -d . \;
Original file line number Diff line number Diff line change @@ -18,22 +18,16 @@ install:
1818 # about it being out of date.
1919 - " pip install --disable-pip-version-check --user --upgrade pip"
2020
21- # Create poetry virtualenv
22- - pip install virtualenv
23- - virtualenv --python="C:/Python36-x64\\python.exe" "venv-poetry"
24- - venv-poetry\\Scripts\\pip.exe install poetry --pre
25-
26- # Create current python virtualenv
27- - python -m virtualenv venv
28- - venv\Scripts\activate.bat
29- - " SET VIRTUAL_ENV=venv" # Seems that activate.bat does not set VIRTUAL_ENV
21+ # Downloading and installing poetry
22+ - curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
23+ - python get-poetry.py --preview
3024
3125 # Install dependencies
3226 - pip install codecov
33- - venv- poetry\\Scripts\\poetry.exe install -v
27+ - poetry install -v
3428
3529test_script :
36- - " pytest --cov=pendulum --cov-config=.coveragerc tests/"
30+ - " poetry run pytest --cov=pendulum --cov-config=.coveragerc tests/"
3731
3832after_test :
3933 - " codecov"
You can’t perform that action at this time.
0 commit comments