Skip to content

Commit e87cdc5

Browse files
committed
Trying to get MacOS sed to work like GNU, and checking resulting environment file
1 parent ea697a2 commit e87cdc5

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

appveyor.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ init:
3636
OS=Linux ;
3737
else
3838
OS=MacOSX ;
39+
brew install gsed
40+
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH";
3941
fi ;
4042
curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-$OS-x86_64.sh > miniconda.sh
4143
- sh: bash miniconda.sh -b -p $HOME/miniconda;
@@ -44,23 +46,14 @@ init:
4446
install:
4547
- conda config --set always_yes yes --set changeps1 no
4648
- conda update -q conda
47-
- pwsh: ((Get-Content -path environment.yml -Raw) -replace 'python>=3.6',"python=$env:PYTHON_VERSION") | Set-Content -Path environment.yml
49+
# Python version substitution in environment.yml for Linux/MacOS, update the Python version to be replaced when we raise the minimum Python version
4850
- sh: sed -i 's/python>=3.6/python=$PYTHON_VERSION/g' environment.yml
49-
- pwsh: type environment.yml
51+
# Python version substitution in environment.yml for Windows, update the Python version to be replaced when we raise the minimum Python version
52+
- pwsh: ((Get-Content -path environment.yml -Raw) -replace 'python>=3.6',"python=$env:PYTHON_VERSION") | Set-Content -Path environment.yml
53+
- sh: cat environment.yml
5054
- conda env create -f environment.yml
5155
- activate cadquery
52-
#- cmd: conda install -c conda-forge -c defaults -c cadquery python=%PYTHON_VERSION%
53-
#- sh: conda install -c conda-forge -c defaults -c cadquery python=$PYTHON_VERSION
54-
#- pip install black=19.10b0
55-
#- cmd: conda install python=%PYTHON_VERSION%
56-
#- sh: conda install python=$PYTHON_VERSION
5756
- pip install git+https://github.com/CadQuery/[email protected]
58-
#- pip install mypy
59-
#- pip install pytest
60-
#- pip install pytest-cov
61-
#- pip install path
62-
#- pip install docutils
63-
#- pip install codecov
6457

6558
build: false
6659

0 commit comments

Comments
 (0)