mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
enable CI for Python 3.7
This commit is contained in:
parent
c7f95ff3b4
commit
92a6af8c99
4 changed files with 70 additions and 3 deletions
|
@ -7,10 +7,12 @@ environment:
|
||||||
- PYTHON: "C:\\Python34"
|
- PYTHON: "C:\\Python34"
|
||||||
- PYTHON: "C:\\Python35"
|
- PYTHON: "C:\\Python35"
|
||||||
- PYTHON: "C:\\Python36"
|
- PYTHON: "C:\\Python36"
|
||||||
|
- PYTHON: "C:\\Python37"
|
||||||
- PYTHON: "C:\\Python34-x64"
|
- PYTHON: "C:\\Python34-x64"
|
||||||
DISTUTILS_USE_SDK: "1"
|
DISTUTILS_USE_SDK: "1"
|
||||||
- PYTHON: "C:\\Python35-x64"
|
- PYTHON: "C:\\Python35-x64"
|
||||||
- PYTHON: "C:\\Python36-x64"
|
- PYTHON: "C:\\Python36-x64"
|
||||||
|
- PYTHON: "C:\\Python37-x64"
|
||||||
- XONSH_TEST_ENV: "MSYS2"
|
- XONSH_TEST_ENV: "MSYS2"
|
||||||
MSYS2_PATH: "C:\\msys64"
|
MSYS2_PATH: "C:\\msys64"
|
||||||
# TODO: Miniconda
|
# TODO: Miniconda
|
||||||
|
|
|
@ -132,6 +132,50 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
/home/circleci/miniconda/envs/py36-xonsh-test/bin/pytest --timeout=10 --flake8 --cov=./xonsh
|
/home/circleci/miniconda/envs/py36-xonsh-test/bin/pytest --timeout=10 --flake8 --cov=./xonsh
|
||||||
|
build_37:
|
||||||
|
machine: true
|
||||||
|
environment:
|
||||||
|
PYTHON: "3.7"
|
||||||
|
ENV_NAME: "py37-xonsh-test"
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- miniconda-v1-{{ checksum "ci/environment-3.7.yml" }}
|
||||||
|
- run:
|
||||||
|
name: install miniconda
|
||||||
|
command: |
|
||||||
|
if [ ! -d "/home/circleci/miniconda" ]; then
|
||||||
|
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
|
||||||
|
bash miniconda.sh -b -p $HOME/miniconda
|
||||||
|
export PATH="$HOME/miniconda/bin:$PATH"
|
||||||
|
conda config --set always_yes yes --set changeps1 no
|
||||||
|
fi
|
||||||
|
sudo chown -R $USER.$USER $HOME
|
||||||
|
- run:
|
||||||
|
name: configure conda
|
||||||
|
command: |
|
||||||
|
export PATH="$HOME/miniconda/bin:$PATH"
|
||||||
|
export ENV_NAME="py37-xonsh-test"
|
||||||
|
if [ ! -d "/home/circleci/miniconda/envs/py37-xonsh-test" ]; then
|
||||||
|
conda update -q conda
|
||||||
|
conda env create -f ci/environment-${PYTHON}.yml --name=${ENV_NAME}
|
||||||
|
source activate ${ENV_NAME}
|
||||||
|
fi
|
||||||
|
conda env list
|
||||||
|
conda list ${ENV_NAME}
|
||||||
|
- save_cache:
|
||||||
|
key: miniconda-v1-{{ checksum "ci/environment-3.7.yml" }}
|
||||||
|
paths:
|
||||||
|
- "/home/circleci/miniconda"
|
||||||
|
- run:
|
||||||
|
command: |
|
||||||
|
export PATH="$HOME/miniconda/bin:$PATH"
|
||||||
|
source activate ${ENV_NAME}
|
||||||
|
python setup.py install
|
||||||
|
- run:
|
||||||
|
command: |
|
||||||
|
/home/circleci/miniconda/envs/py37-xonsh-test/bin/pytest --timeout=10 --flake8 --cov=./xonsh
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
@ -140,3 +184,4 @@ workflows:
|
||||||
- build_34
|
- build_34
|
||||||
- build_35
|
- build_35
|
||||||
- build_36
|
- build_36
|
||||||
|
- build_37
|
||||||
|
|
|
@ -5,7 +5,7 @@ env:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
python: 3.5
|
python: 3.7
|
||||||
env:
|
env:
|
||||||
- MINICONDA_OS="Linux"
|
- MINICONDA_OS="Linux"
|
||||||
- CI=true
|
- CI=true
|
||||||
|
@ -19,10 +19,10 @@ matrix:
|
||||||
python: "nightly"
|
python: "nightly"
|
||||||
- os: osx
|
- os: osx
|
||||||
language: generic
|
language: generic
|
||||||
env: PYTHON="3.4" MINICONDA_OS="MacOSX"
|
env: PYTHON="3.6" MINICONDA_OS="MacOSX"
|
||||||
- os: osx
|
- os: osx
|
||||||
language: generic
|
language: generic
|
||||||
env: PYTHON="3.5" MINICONDA_OS="MacOSX"
|
env: PYTHON="3.7" MINICONDA_OS="MacOSX"
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- python: "nightly"
|
- python: "nightly"
|
||||||
|
|
||||||
|
|
20
ci/environment-3.7.yml
Normal file
20
ci/environment-3.7.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: py37-xonsh-test
|
||||||
|
channels:
|
||||||
|
- conda-forge
|
||||||
|
- defaults
|
||||||
|
dependencies:
|
||||||
|
- python=3.7
|
||||||
|
- pygments
|
||||||
|
- prompt_toolkit
|
||||||
|
- ply
|
||||||
|
- pytest
|
||||||
|
- pytest-timeout
|
||||||
|
- numpy
|
||||||
|
- psutil
|
||||||
|
- matplotlib
|
||||||
|
- flake8
|
||||||
|
- coverage
|
||||||
|
- pyflakes
|
||||||
|
- pytest-cov
|
||||||
|
- pytest-flake8
|
||||||
|
- codecov
|
Loading…
Add table
Reference in a new issue