Split up build & test

This should make the output a bit more segmented (and thus, more readable)
This commit is contained in:
Jaime van Kessel 2020-08-14 16:31:25 +02:00
parent dd6467303e
commit 01aa729577
No known key found for this signature in database
GPG Key ID: 3710727397403C91
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
---
name: CI/CD
name: CI
on:
push:
branches:
@ -10,11 +10,12 @@ on:
pull_request:
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
container: ultimaker/cura-build-environment
steps:
- name: Checkout Cura
uses: actions/checkout@v2
- name: Build and test
- name: Build
run: docker/build.sh
- name: Test
run: docker/test.sh

View File

@ -69,4 +69,3 @@ cmake3 \
-DGENERATE_TRANSLATIONS=OFF \
..
make
ctest3 -j4 --output-on-failure -T Test

3
docker/test.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd build
ctest3 -j4 --output-on-failure -T Test