Move tests to separate script

This commit is contained in:
Gregory Casamento 2021-07-13 02:59:24 -04:00
parent 00ac1ba5e3
commit 354ae5c259
4 changed files with 18 additions and 3 deletions

View file

@ -22,8 +22,8 @@ then
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" && \
sudo apt-get update -qq;
sudo apt-get install -y clang-9 libkqueue-dev libpthread-workqueue-dev;
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 10 \
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-9;
# sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 10 \
# --slave /usr/bin/clang++ clang++ /usr/bin/clang++-9;
export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/clang-7.0.0\/bin//');
if [ "$RUNTIME_VERSION" = "gnustep-2.0" ];
then
@ -49,4 +49,4 @@ export GNUSTEP_MAKEFILES=$HOME/staging/share/GNUstep/Makefiles;
# script
./configure $BASE_ABI || (cat config.log && false);
make && make install && make check || (cat Tests/tests.log && false);
make && make install

6
.github/scripts/test.sh vendored Normal file
View file

@ -0,0 +1,6 @@
#! /usr/bin/env sh
set -ex
Echo "Running unit tests"
make check || (cat Tests/tests.log && false);

View file

@ -23,3 +23,7 @@ jobs:
# Runs a single command using the runners shell
- name: Build source
run: ./.github/scripts/build.sh
# Run the tests
- name: Run Tests
run: ./.github/scripts/test.sh

View file

@ -23,3 +23,8 @@ jobs:
# Runs a single command using the runners shell
- name: Build source
run: ./.github/scripts/build.sh
# Runs a single command using the runners shell
- name: Run Tests
run: ./.github/scripts/test.sh