Skip to content

Commit 59d0b74

Browse files
committed
👷 Use absolute paths for ~
1 parent 638c6f4 commit 59d0b74

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.circleci/config.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ commands:
2323
# setuptools≤57.5.0 until traits>4.6.0 in C-PAC
2424
command: |
2525
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
26+
python -m venv /home/circleci/docs_env
27+
source /home/circleci/docs_env/bin/activate
2828
pip install "setuptools<=57.5.0"
2929
pip install -r requirements.txt
3030
pip install -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt
@@ -34,8 +34,8 @@ commands:
3434
git checkout << parameters.version >>
3535
cd /home/circleci/build
3636
deactivate
37-
python -m venv ~/simple
38-
source ~/simple/bin/activate
37+
python -m venv /home/circleci/simple
38+
source /home/circleci/simple/bin/activate
3939
pip install git+https://github.com/FCP-INDI/cpac.git@81c33b52d72478bef54ccfdce05577d52ebf714c semver
4040
deactivate
4141
@@ -45,7 +45,7 @@ commands:
4545
- run:
4646
name: 👊 Running cpac commands
4747
command: |
48-
source ~/simple/bin/activate
48+
source /home/circleci/simple/bin/activate
4949
cpac pull
5050
mkdir -p docs/_sources/user/cpac
5151
printf ".. code-block:: console\n\n $ cpac --help\n\n" > docs/_sources/user/cpac/help.rst
@@ -70,11 +70,13 @@ commands:
7070
command: |
7171
git config --global user.email "[email protected]"
7272
git config --global user.name "ChildMindInstituteCNL"
73+
mkdir -p /home/circleci/.ssh/
74+
touch /home/circleci/.ssh/known_hosts
75+
ssh-keyscan github.com >> /home/circleci/.ssh/known_hosts
7376
- run:
7477
name: 🔀 Combining new docs with existing docs
7578
command: |
7679
cd /home/circleci/build
77-
ssh-keyscan github.com >> ~/.ssh/known_hosts
7880
git clone --single-branch --branch main [email protected]:${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git /tmp/repo || git clone --single-branch --branch main [email protected]:${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git /tmp/repo
7981
rsync -rtv ./ /tmp/repo/ --exclude '.git'
8082
- run:
@@ -133,7 +135,7 @@ jobs:
133135
- get-tutorials
134136
- run:
135137
name: 🏗️ Building nightly branch docs
136-
command: source ~/docs_env/bin/activate && ./bin/build nightly
138+
command: source /home/circleci/docs_env/bin/activate && ./bin/build nightly
137139
- store-commit-message
138140
- persist-new-build
139141
build-version:
@@ -151,7 +153,7 @@ jobs:
151153
- get-tutorials
152154
- run:
153155
name: 🏗️ Building version branch docs
154-
command: source ~/docs_env/bin/activate && ./bin/build ${BUILD_VERSION}
156+
command: source /home/circleci/docs_env/bin/activate && ./bin/build ${BUILD_VERSION}
155157
- store-commit-message
156158
- persist-new-build
157159
deploy-nightly:

0 commit comments

Comments
 (0)