Skip to content

Commit

Permalink
fix: speed up git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 4, 2021
1 parent 92f0fb9 commit d3e4bde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions test/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions test/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ base=$(pwd)

if [ -z ${NODE_UI_PATH+x} ]; then
node_ui_dir="$(mktemp -d -t ci-XXXXXXXXXX)/kratos-selfservice-ui-node"
git clone https://github.com/ory/kratos-selfservice-ui-node.git "$node_ui_dir"
git clone --depth 1 --branch master https://github.com/ory/kratos-selfservice-ui-node.git "$node_ui_dir"
(cd "$node_ui_dir" && npm i && npm run build)
else
node_ui_dir="${NODE_UI_PATH}"
fi

if [ -z ${RN_UI_PATH+x} ]; then
rn_ui_dir="$(mktemp -d -t ci-XXXXXXXXXX)/kratos-selfservice-ui-react-native"
git clone https://github.com/ory/kratos-selfservice-ui-react-native.git "$rn_ui_dir"
git clone --depth 1 --branch master https://github.com/ory/kratos-selfservice-ui-react-native.git "$rn_ui_dir"
(cd "$rn_ui_dir" && npm i)
else
rn_ui_dir="${RN_UI_PATH}"
fi

if [ -z ${REACT_UI_PATH+x} ]; then
react_ui_dir="$(mktemp -d -t ci-XXXXXXXXXX)/ory/react-nextjs-example"
git clone https://github.com/ory/react-nextjs-example.git "$react_ui_dir"
react_ui_dir="$(mktemp -d -t ci-XXXXXXXXXX)/ory/kratos-selfservice-ui-react-nextjs"
git clone --depth 1 --branch master https://github.com/ory/kratos-selfservice-ui-react-nextjs.git "$react_ui_dir"
(cd "$react_ui_dir" && npm i)
else
react_ui_dir="${REACT_UI_PATH}"
Expand Down

0 comments on commit d3e4bde

Please sign in to comment.