mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
Add CI to build webconfig
This commit is contained in:
parent
9a3f0e5cb5
commit
544b3538b5
2 changed files with 59 additions and 0 deletions
|
@ -215,6 +215,54 @@ jobs:
|
|||
command: |
|
||||
export PATH="$HOME/miniconda/bin:$PATH"
|
||||
black --check --exclude=xonsh/ply/ xonsh/ xontrib/
|
||||
build_elm:
|
||||
machine: true
|
||||
environment:
|
||||
PYTHON: "3.7"
|
||||
ENV_NAME: "elm-xonsh-test"
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- miniconda-v1-{{ checksum "ci/environment-elm.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 --set channel_priority strict
|
||||
fi
|
||||
sudo chown -R $USER.$USER $HOME
|
||||
- run:
|
||||
name: configure conda
|
||||
command: |
|
||||
export PATH="$HOME/miniconda/bin:$PATH"
|
||||
export ENV_NAME="elm-xonsh-test"
|
||||
if [ ! -d "/home/circleci/miniconda/envs/elm-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-elm.yml" }}
|
||||
paths:
|
||||
- "/home/circleci/miniconda"
|
||||
- run:
|
||||
command: |
|
||||
export PATH="$HOME/miniconda/bin:$PATH"
|
||||
source activate ${ENV_NAME}
|
||||
pip install . --no-deps
|
||||
- run:
|
||||
command: |
|
||||
export PATH="$HOME/miniconda/bin:$PATH"
|
||||
source activate ${ENV_NAME}
|
||||
pushd xonsh/webconfig
|
||||
./elm-compile.xsh
|
||||
popd
|
||||
|
||||
|
||||
workflows:
|
||||
|
@ -224,6 +272,7 @@ workflows:
|
|||
- build_35
|
||||
- build_36
|
||||
- build_37
|
||||
- build_elm
|
||||
- build_black
|
||||
# conda-foge does not yet have all Python 3.8 packages available
|
||||
# uncomment when it does
|
||||
|
|
10
ci/environment-elm.yml
Normal file
10
ci/environment-elm.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
name: elm-xonsh-test
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
dependencies:
|
||||
- python=3.7
|
||||
- pygments
|
||||
- elm
|
||||
- uglify-js
|
||||
- docutils
|
Loading…
Add table
Reference in a new issue