Skip to content

Commit

Permalink
circleci: use venv
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic30 committed May 5, 2023
1 parent 4f893c7 commit a502713
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
export DEBIAN_FRONTEND=noninteractive
export TZ=America/USA
apt update
apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip git lcov rubygems
apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip python3-venv git lcov rubygems
python3 -m venv venv
echo "source $PWD/venv/bin/activate" >> $BASH_ENV
echo 'export SKBUILD_CONFIGURE_OPTIONS="-DCMAKE_BUILD_TYPE:STRING=Debug -DCODE_COVERAGE=ON"' >> $BASH_ENV
# because we do not have enough RAM
echo 'export SKBUILD_BUILD_OPTIONS="-j1"' >> $BASH_ENV
Expand Down Expand Up @@ -83,7 +85,9 @@ jobs:
export DEBIAN_FRONTEND=noninteractive
export TZ=America/USA
apt update
apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip git lcov rubygems
apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip python3-venv git lcov rubygems
python3 -m venv venv
echo "source $PWD/venv/bin/activate" >> $BASH_ENV
# because we do not have enough RAM
echo 'export SKBUILD_BUILD_OPTIONS="-j1"' >> $BASH_ENV
source $BASH_ENV
Expand All @@ -110,7 +114,7 @@ jobs:
# echo export CXXFLAGS=\"$CXXFLAGS --param ggc-min-expand=1 --param ggc-min-heapsize=32768\" >> "$BASH_ENV"
- py/install-setup-py:
rm-package-dir: true
build-args: "--user --verbose"
build-args: "--verbose"
# - python/save-cache
- py/test-and-coverage:
coverage: false
Expand Down

0 comments on commit a502713

Please sign in to comment.