Skip to content

Commit f90485e

Browse files
committed
👷 Build in C-PAC image
1 parent 88338b2 commit f90485e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.circleci/config.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ commands:
55
- run:
66
name: 👽️ Getting user tutorials
77
command: |
8-
sudo apt-get update
9-
sudo apt-get -y install git pandoc
8+
apt-get update
9+
apt-get -y install git pandoc
1010
git clone --depth 1 https://github.com/FCP-INDI/C-PAC_tutorials.git docs/_sources/user/tutorials
1111
get-version:
1212
steps:
@@ -22,15 +22,18 @@ commands:
2222
name: ↑ Installing build dependencies
2323
# setuptools≤57.5.0 until traits>4.6.0 in C-PAC
2424
command: |
25-
sudo apt-get update && sudo apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx
25+
apt-get update && apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx
26+
python -m venv ~/docs_env
27+
source ~/docs_env/bin/activate
2628
pip install "setuptools<=57.5.0"
27-
pip install --user -r requirements.txt
28-
pip install --user -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt
29-
pip install --user git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >>
29+
pip install -r requirements.txt
30+
pip install -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt
31+
pip install git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >>
3032
git clone https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git /home/circleci/build/C-PAC
3133
cd /home/circleci/build/C-PAC
3234
git checkout << parameters.version >>
3335
cd /home/circleci/build
36+
deactivate
3437
python -m venv ~/simple
3538
source ~/simple/bin/activate
3639
pip install git+https://github.com/FCP-INDI/cpac.git@81c33b52d72478bef54ccfdce05577d52ebf714c semver
@@ -61,7 +64,7 @@ commands:
6164
steps:
6265
- run:
6366
name: ↑ Installing deploy dependencies
64-
command: sudo apt-get update && sudo apt-get -y install git rsync
67+
command: apt-get update && apt-get -y install git rsync
6568
- run:
6669
name: 🔧 Configuring git user
6770
command: |
@@ -118,7 +121,7 @@ jobs:
118121
build-nightly:
119122
working_directory: /home/circleci/build
120123
docker:
121-
- image: cimg/python:3.10
124+
- image: ghcr.io/fcp-indi/c-pac:nightly
122125
steps:
123126
- checkout:
124127
path: /home/circleci/build
@@ -134,7 +137,7 @@ jobs:
134137
build-version:
135138
working_directory: /home/circleci/build
136139
docker:
137-
- image: cimg/python:3.10
140+
- image: ghcr.io/fcp-indi/c-pac:nightly
138141
steps:
139142
- checkout:
140143
path: /home/circleci/build

0 commit comments

Comments
 (0)