variables: PYPI_USER: SECURE PYPI_PASSWORD: SECURE stages: - build - test - deploy - clean build_prrt: stage: build artifacts: name: "$CI_BUILD_REF_NAME$" untracked: true expire_in: "1h" script: - which cmake - which gcc - which g++ - pip3 list | grep Cython - pip3 list | grep numpy - CC=gcc-5 CXX=g++-5 cmake . - make test_prrt_mem: stage: test script: - which valgrind - export prrtResult=0 - valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/receiver 5000 & export prrtReceiverProcessID=$! - valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/sender 100 || prrtResult=$?; kill -INT $prrtReceiverProcessID; wait $prrtReceiverProcessID || prrtResult=$? - exit $prrtResult #performanceEvaluation: # script: # - python3 setup.py build_ext --inplace # - make perftest test_prrt_functional: stage: test script: - ./bin/prrtTests package_pypi: stage: deploy script: - echo "[distutils]" >> ~/.pypirc - echo "index-servers =" >> ~/.pypirc - echo " on" >> ~/.pypirc - echo " " >> ~/.pypirc - echo "[on]" >> ~/.pypirc - echo "repository=http://git.nt.uni-saarland.de:5678" >> ~/.pypirc - echo "username=$PYPI_USER" >> ~/.pypirc - echo "password=$PYPI_PASSWORD" >> ~/.pypirc - python3 setup.py check sdist bdist upload -r on clean_pypirc: stage: clean when: always script: - rm -vf ~/.pypirc