@@ -140,43 +140,5 @@ asdf-install-test:
140140 @echo " asdf installation complete"
141141
142142deploy-ci :
143- echo " === Setting up environment for CI unit tests ===" && \
144- curl -LO https://github.com/asdf-vm/asdf/releases/download/v0.18.0/asdf-v0.18.0-linux-amd64.tar.gz && \
145- tar -xvzf asdf-v0.18.0-linux-amd64.tar.gz -C /usr/local/bin && \
146- chmod +x /usr/local/bin/asdf && \
147- pwd && \
148- ls -la
149- @echo " from manual test tools versions file contains:"
150- cat .tool-versions || echo " -> .tool-versions file not found in this directory"
151- /usr/local/bin/asdf --version
152- @echo " Setting up asdf environment and adding plugins"
153- export ASDF_DATA_DIR=$$ HOME/.asdf && \
154- export PATH=$$ ASDF_DATA_DIR/shims:$$ ASDF_DATA_DIR/bin:/usr/local/bin:$$ PATH && \
155- echo " Adding plugins from .tool-versions" && \
156- while IFS=' ' read -r plugin version || [ -n " $$ plugin" ]; do \
157- plugin=$$(echo "$$plugin" | xargs ) ; \
158- first_char=$$(echo "$$plugin" | cut -c1 ) ; \
159- if [ -n " $$ plugin" ] && [ " $$ first_char" != " #" ]; then \
160- echo " Adding plugin: $$ plugin (version: $$ version)" && \
161- /usr/local/bin/asdf plugin add " $$ plugin" 2>&1 || echo " -> Plugin $$ plugin already added or failed" ; \
162- fi \
163- done < .tool-versions && \
164- echo " Listing available plugins:" && \
165- /usr/local/bin/asdf plugin list && \
166- echo " Installing asdf versions" && \
167- /usr/local/bin/asdf install -v && \
168- echo " Installed versions:" && \
169- /usr/local/bin/asdf list && \
170- echo " Node is at:" && \
171- whereis node && \
172- echo " Chosen one is at:" && \
173- which node && \
174- echo " Node version is:" && \
175- node --version && \
176- npm install && \
177- echo " === Finished installing dependencies ===" && \
178- asdf info && \
179- asdf current && \
180- node --version && \
181- npm --version && \
143+ npm ci
182144 make deploy
0 commit comments