Creating the test scripts used during CI
[osm/vim-emu.git] / utils / ci / build_01_unit_tests.sh
diff --git a/utils/ci/build_01_unit_tests.sh b/utils/ci/build_01_unit_tests.sh
new file mode 100755 (executable)
index 0000000..ab6ece3
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/bash -e
+set -x
+
+# Go to the 'root' directory
+SCRIPT_DIR=$(dirname $(readlink -f $0))
+BASE_DIR=$(readlink -f "${SCRIPT_DIR}/../..")
+cd ${BASE_DIR}
+
+# Remove old test output
+rm -rf utils/ci/junit-xml/*
+
+# Launch the unit testing on emuvim
+py.test -v --junit-xml=utils/ci/junit-xml/pytest_emuvim.xml src/emuvim