aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2019-05-17 13:24:29 +0200
committerRichard Weickelt <richard@weickelt.de>2019-06-13 17:10:05 +0000
commit2adb2749f6e13ce1d035c387ae26d906d3bdd04e (patch)
tree99d7c888bf01fd71f2e24842fa3aea681cb84956 /.travis.yml
parent59cc3f249b1f507afda1757e6edd1ba25970fa1d (diff)
Enable Travis CI to build and test Qbs
This patch adds a configuration file for building and testing Qbs with Travis CI. Travis supports Linux, Windows and Mac OS. It requires a repository on github, but is generally free for open source projects. Users could simply fork Qbs, connect their Travis account to the forked repository and let it build. In addition to this patch, a bot has been implemented that watches codereview.qt-project.org for changes. Whenever a user uploads a new change or patch set, the bot pushes this change to a mirror repository on github and kicks Travis to build it. Once the build has finished the result is posted as a comment back to gerrit. This bot could be extended to behave like the Qt CI system. Change-Id: Ic0e1bd507171f40860bfe352651880b4ae7412fc Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..cead59a79
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,31 @@
+#
+# Required environment variables in the travis config
+#
+# DOCKER_USERNAME
+#
+language: cpp
+
+git:
+ submodules: false
+
+stages:
+ - name: Build Qbs and and run autotests
+
+jobs:
+ include:
+ - &build-on-stretch
+ stage: Build Qbs and and run autotests
+ name: With Qbs on Debian stretch (linux_amd64)
+ env:
+ SERVICE=stretch
+ services:
+ - docker
+ before_install:
+ - docker-compose pull ${SERVICE}
+ script:
+ - docker-compose run --rm ${SERVICE} scripts/build-qbs-with-qbs.sh
+
+ - <<: *build-on-stretch
+ name: With QMake on Debian stretch (linux_amd64)
+ script:
+ - docker-compose run --rm ${SERVICE} scripts/build-qbs-with-qmake.sh