Skip to content

Commit

Permalink
Formatting: enable build checks on CI (#397)
Browse files Browse the repository at this point in the history
Enforce the new code style during CI builds. We use a separate job
so that style errors are reported separately from failed tests.
We also check both flavors as they use different Soter sources.
  • Loading branch information
ilammy committed Feb 28, 2019
1 parent 3c8bf73 commit 5d84d76
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ jobs:
# wait for emulator to fully boot before running tests
- run: timeout 10m /bin/bash -c 'while true; do $ANDROID_HOME/platform-tools/adb wait-for-device logcat -b events -d | grep -i boot_progress_enable_screen && break; date; sleep 3; done'
- run: ./gradlew --no-daemon --no-parallel --max-workers=2 connectedAndroidTest

analyze:
docker:
- image: cossacklabs/build:ubuntu-bionic
environment:
CLANG_FORMAT: clang-format-7
CLANG_TIDY: clang-tidy-7
steps:
- checkout
- run: git submodule update --init
- run: make fmt_check ENGINE=boringssl
- run: make fmt_check ENGINE=openssl

x86_64:
docker:
- image: cossacklabs/android-build:2019.01
Expand Down Expand Up @@ -190,6 +203,7 @@ workflows:
version: 2
tests:
jobs:
- analyze
- android
- x86_64
- php5
Expand Down

0 comments on commit 5d84d76

Please sign in to comment.