Commit 208dfde9 authored by ndenoyelle's avatar ndenoyelle Committed by Swann Perarnau

[ci/fix] ensure we test out-of-tree builds

Out-of-tree builds are popular when one doesn't want to pollute the
source tree with objects. It also helps debug build setup issues.
parent e722fcca
......@@ -30,8 +30,8 @@ make:generic:
variables:
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter"
script:
- ./autogen.sh
- mkdir build
- ./autogen.sh
- ./configure --prefix=`pwd`/build
- make
- make check
......@@ -42,6 +42,25 @@ make:generic:
- config.log
- tests/*.log
make:out-of-tree:
stage: build
except:
- /^wip.*/
- /^WIP.*/
variables:
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter"
script:
- mkdir out
- cd out
- ../configure
- make
- make check
artifacts:
when: on_failure
paths:
- config.log
- tests/*.log
make:knl:
stage: build
except:
......@@ -60,6 +79,7 @@ make:knl:
artifacts:
when: on_failure
paths:
- config.log
- tests/*.log
readthedocs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment