From 8a706919fd5d349e733392ea68b38b1a6665d657 Mon Sep 17 00:00:00 2001 From: Ben Lau Date: Tue, 13 Sep 2016 20:06:08 +0800 Subject: [PATCH] .travis.yml: Build and run test program by qtci --- .travis.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1baa2b7..02b8aaa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,18 +12,13 @@ before_install: - sudo apt-get install nodejs - sh -e /etc/init.d/xvfb start script: + - ROOTDIR=`pwd` + - git clone https://github.com/benlau/qtci.git + - source qtci/path.env - source /opt/qt53/bin/qt53-env.sh - - cd tests/unittests - - qmake - - make - - ls - - ./unittests - - cd ../cppunittests - - qmake - - make - - ls - - ./cppunittests - - cd ../promises-aplus-tests/ + - (rm -rf build;mkdir build; cd build; run-unittests $ROOTDIR/tests/unittests/unittests.pro) + - (rm -rf build;mkdir build; cd build; run-unittests $ROOTDIR/tests/cppunittests/cppunittests.pro) + - cd tests/promises-aplus-tests/ - npm install . - node ./run.js