xref: /openbmc/webui-vue/run-ci (revision 02e14973)
19b27bc08SDerick Montague#!/bin/bash
29b27bc08SDerick Montague# Run GUI Unit Tests as part of the CI Build process#
39b27bc08SDerick Montague
49b27bc08SDerick Montagueset -e
59b27bc08SDerick Montague
69b27bc08SDerick Montague# When called from openbmc-build-scripts, the `pwd` could be anywhere, but
79b27bc08SDerick Montague# the root of the repo is passed in the first argument.  Switch to the repo
89b27bc08SDerick Montague# root so npm/git run in the right place.
99b27bc08SDerick Montagueif [ -n "$1" ]; then
109b27bc08SDerick Montague    cd "$1"
119b27bc08SDerick Montaguefi
129b27bc08SDerick Montague
13*02e14973SEd Tanousnpm ci
149b27bc08SDerick Montaguenpm run test:unit
15