File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 10
10
else :
11
11
skip_pkgs = set ()
12
12
13
- system_dir = os .getenv ("TUE_SYSTEM_DIR" )
14
- packages = (f .path for f in os .scandir (os .path .join (system_dir , "src" )) if f .is_dir ())
13
+ # TODO(anyone): remove try...except when tue-env is updated to new variable names
14
+ try :
15
+ ws_dir = os .environ ["TUE_ENV_WS_DIR" ]
16
+ except KeyError :
17
+ ws_dir = os .environ ["TUE_WS_DIR" ]
18
+
19
+ packages = (f .path for f in os .scandir (os .path .join (ws_dir , "src" )) if f .is_dir ())
15
20
16
21
install_build_pkgs = set () # All packages that need to be build and require all deps to be installed
17
22
build_pkgs = set () # All packages that need to be build
Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ docker exec tue-env bash -c "source ~/.bashrc; tue-get install ros-python_orocos
122
122
123
123
if [ -n " ${SKIPLIST} " ]
124
124
then
125
- echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_SYSTEM_DIR} --skiplist ' " ${SKIPLIST} " ' \e[0m'
126
- docker exec -t tue-env bash -c ' source ~/.bashrc; catkin config --workspace ${TUE_SYSTEM_DIR} --skiplist ' " ${SKIPLIST} "
125
+ echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_ENV_WS_DIR} --skiplist ' " ${SKIPLIST} " ' \e[0m'
126
+ # TODO(anyone): remove variable logic when tue-env is updated to new variable names
127
+ docker exec -t tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; catkin config --workspace ${TUE_ENV_WS_DIR} --skiplist ' " ${SKIPLIST} "
127
128
fi
128
129
129
130
echo -e " \e[35m\e[1mtue-make --no-status -DCATKIN_ENABLE_TESTING=OFF python_orocos_kdl" " ${INSTALL_BUILD_PKGS[*]} " " ${BUILD_PKGS[*]} " " \e[0m"
@@ -132,8 +133,9 @@ docker exec -t tue-env bash -c "source ~/.bashrc; tue-make --no-status -DCATKIN_
132
133
133
134
if [ -n " ${SKIPLIST} " ]
134
135
then
135
- echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_SYSTEM_DIR} --no-skiplist\e[0m'
136
- docker exec -t tue-env bash -c ' source ~/.bashrc; catkin config --workspace ${TUE_SYSTEM_DIR} --no-skiplist' # Clear skiplist
136
+ echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_ENV_WS_DIR} --no-skiplist\e[0m'
137
+ # TODO(anyone): remove variable logic when tue-env is updated to new variable names
138
+ docker exec -t tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; catkin config --workspace ${TUE_ENV_WS_DIR} --no-skiplist' # Clear skiplist
137
139
fi
138
140
139
141
# Allow everyone to read ~/.cache/pip folder for caching inside CI pipelines
Original file line number Diff line number Diff line change 19
19
shift
20
20
done
21
21
22
- TUE_SYSTEM_DIR=$( docker exec -t tue-env bash -c ' source ~/.bashrc; echo "${TUE_SYSTEM_DIR}"' | tr -d ' \r' )
22
+ # TODO(anyone): remove variable logic when tue-env is updated to new variable names
23
+ TUE_ENV_WS_DIR=$( docker exec -t tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; echo "${TUE_ENV_WS_DIR}"' | tr -d ' \r' )
23
24
24
- echo -e " \e[35m\e[1mdocker cp tue-env:${TUE_SYSTEM_DIR } /docs .\e[0m"
25
- docker cp tue-env:" ${TUE_SYSTEM_DIR } " /docs .
25
+ echo -e " \e[35m\e[1mdocker cp tue-env:${TUE_ENV_WS_DIR } /docs .\e[0m"
26
+ docker cp tue-env:" ${TUE_ENV_WS_DIR } " /docs .
You can’t perform that action at this time.
0 commit comments