summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-06-19 10:17:40 (GMT)
committerTobias Markmann <tm@ayena.de>2017-06-21 15:56:21 (GMT)
commit44917c5f63ee2373b65911ea953d19fc0d1f3272 (patch)
treeaf296ec2eef9197e337fefc9a559b2ca3e683d5b /.circleci
parent027111dcd9f5812342066d3bd3e1dbb1f46b3c95 (diff)
downloadswift-44917c5f63ee2373b65911ea953d19fc0d1f3272.zip
swift-44917c5f63ee2373b65911ea953d19fc0d1f3272.tar.bz2
Add CircleCI configuration for basic GitHub PR checks
This also disables a couple compiler warnings raised by clang trunk. Test-Information: Tested this on my personal GitHub fork of Swift and it works. Change-Id: I646d3beb9fc0376e0b38ce8e323e5717a899ad45
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..4ba10d9
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,28 @@
+version: 2
+jobs:
+ build:
+ working_directory: ~/swift
+ docker:
+ - image: debian:latest
+ steps:
+ - checkout
+ - run:
+ name: Install dependencies
+ command: |
+ apt-get -y update
+ apt-get -y install lsb-release locales python python3-setuptools python3-pip pkg-config libssl-dev qt5-default libqt5x11extras5-dev libqt5webkit5-dev qtmultimedia5-dev qttools5-dev-tools qt5-image-formats-plugins libqt5svg5-dev libminiupnpc-dev libnatpmp-dev libhunspell-dev g++-6 gcc-6 libboost-all-dev
+ pip3 -q install coala-bears[alldeps]
+ - run:
+ name: Version information
+ command: |
+ lsb_release -a
+ qmake --version
+ - run:
+ name: Check basic source code style
+ command: coala --non-interactive
+ - run:
+ name: Build and run unit tests
+ # Disable QtUtilitiesTest.testDSTawareness test because it fails on this system.
+ command: |
+ export GTEST_FILTER=-QtUtilitiesTest.testDSTawareness
+ ./scons test=unit max_jobs=0 allow_warnings=0 -j 2