gitlab: installing time command, enabling portability flag
image: debian
stages: [build, test]
before_script:
- - apt-get -qq update && apt-get -qq install -y automake autoconf gcc g++ gcovr make valgrind
+ - apt-get -qq update && apt-get -qq install -y automake autoconf gcc g++ gcovr make valgrind time
# build from scratch
compile:
@@ -42,7 +42,7 @@ examples:
script:
- make -j4 examples
- echo '' > time.txt
- - ls examples/*_example | sed -E "s#(.*)#echo '\1' >> time.txt; { time ./\1; } 2>> time.txt#g" > run_examples.sh
+ - ls examples/*_example | sed -E "s#(.*)#echo '\1' >> time.txt; { time -p ./\1 ; } 2>> time.txt#g" > run_examples.sh
- /bin/sh run_examples.sh
artifacts:
paths: [run_examples.sh, time.txt]
