ci-cd: Fixed weekly schedules, added test.py to per-commit jobs

This commit is contained in:
Natale Patriciello
2020-08-28 11:34:21 +02:00
parent 51bb8d7026
commit 9cdaa502f7
2 changed files with 13 additions and 6 deletions

View File

@@ -11,14 +11,14 @@
- mkdir -p $CCACHE_BASEDIR_VALUE
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/$CCACHE_BASEDIR_VALUE
- CXX="ccache $COMPILER" ./waf configure --enable-examples --enable-tests -d $MODE
- ./test.py $VALGRIND $FULLNESS
- CXX="ccache $COMPILER" ./waf configure --enable-examples --enable-tests --disable-gtk --disable-python -d $MODE
- ./test.py $VALGRIND_FLAG $FULLNESS
cache:
paths:
- $CCACHE_BASEDIR_VALUE/
variables:
CCACHE_BASEDIR_VALUE: ns-3-ccache-storage
VALGRIND: ""
VALGRIND_FLAG: ""
FULLNESS: ""
# Run the test.py script with files compiled in debug mode
@@ -71,7 +71,7 @@ weekly-test-debug:
variables:
COMPILER: g++
MODE: debug
VALGRIND: -g
VALGRIND_FLAG: -g
only:
variables:
- $RELEASE == "weekly"
@@ -89,7 +89,7 @@ weekly-test-release:
variables:
COMPILER: g++
MODE: release
VALGRIND: -g
VALGRIND_FLAG: -g
only:
variables:
- $RELEASE == "weekly"
@@ -107,7 +107,7 @@ weekly-test-optimized:
variables:
COMPILER: g++
MODE: optimized
VALGRIND: -g
VALGRIND_FLAG: -g
only:
variables:
- $RELEASE == "weekly"

View File

@@ -39,6 +39,7 @@ stages:
- export CCACHE_DIR=${PWD}/$CCACHE_BASEDIR_VALUE
- CXX="ccache $COMPILER" ./waf configure --enable-examples --enable-tests -d $MODE
- ./waf
- ./test.py
cache:
paths:
- $CCACHE_BASEDIR_VALUE/
@@ -52,6 +53,8 @@ per-commit-compile-debug:
except:
variables:
- $PYBINDGEN == "True"
- $RELEASE == "weekly"
- $RELEASE == "daily"
image: archlinux/base
variables:
COMPILER: g++
@@ -65,6 +68,8 @@ per-commit-compile-release:
except:
variables:
- $PYBINDGEN == "True"
- $RELEASE == "weekly"
- $RELEASE == "daily"
image: archlinux/base
variables:
COMPILER: g++
@@ -78,6 +83,8 @@ per-commit-compile-optimized:
except:
variables:
- $PYBINDGEN == "True"
- $RELEASE == "weekly"
- $RELEASE == "daily"
image: archlinux/base
variables:
COMPILER: g++