.gitlab-ci.yml 2.34 KB
Newer Older
1
---
2
image: gcc:9.3.0
3

4
Linux_Secured_Test:
5 6
  variables:
    GIT_SUBMODULE_STRATEGY: normal
7 8 9 10 11 12 13 14 15
  stage: build
  before_script:
    - apt update && apt -y install make autoconf
    - set -o pipefail
    - export VERBOSE=false
    - export CCACHE_DISABLE=false
  script:
    - cd port/linux
    - make DYNAMIC=1 IPV4=1 TCP=1 SECURE=1 test
16

17
Linux_Unsecured_Test:
18 19
  variables:
    GIT_SUBMODULE_STRATEGY: normal
20 21 22 23 24 25 26 27 28
  stage: build
  before_script:
    - apt update && apt -y install make autoconf
    - set -o pipefail
    - export VERBOSE=false
    - export CCACHE_DISABLE=false
  script:
    - cd port/linux
    - make DYNAMIC=1 IPV4=1 TCP=1 SECURE=0 test
29

Rami Alshafi's avatar
Rami Alshafi committed
30
Android_build:
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
  variables:
    GIT_SUBMODULE_STRATEGY: normal
  stage: build
  image: openjdk:8-jdk
  before_script:
      - apt-get --quiet update --yes
      - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 make autoconf swig patch
      - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
      - unzip -d android-sdk-linux android-sdk.zip
      - echo y | android-sdk-linux/tools/bin/sdkmanager "ndk-bundle" >/dev/null
      - echo y | android-sdk-linux/tools/bin/sdkmanager "platforms;android-28" >/dev/null
      - echo y | android-sdk-linux/tools/bin/sdkmanager "platform-tools" >/dev/null
      - echo y | android-sdk-linux/tools/bin/sdkmanager "build-tools;28.0.2" >/dev/null
      - export ANDROID_HOME=$PWD/android-sdk-linux
      - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
      # temporarily disable checking for EPIPE error and use yes to accept all licenses
      - set +o pipefail
      - yes | android-sdk-linux/tools/bin/sdkmanager --licenses
      - set -o pipefail
      - ./android-sdk-linux/ndk-bundle/build/tools/make_standalone_toolchain.py --arch arm --api 23 --install-dir ~/android-arm-23
  script:
    - cd port/android
    - make DYNAMIC=1 TCP=1 IPV4=1 SECURE=1 PKI=1 CLOUD=1 JAVA=1 DEBUG=0
54

55
whitespace_and_doxygen:
56 57
  variables:
    GIT_SUBMODULE_STRATEGY: none
58 59
  stage: build
  before_script:
60
    - apt update && apt -y install make autoconf doxygen clang-format
61
  script:
62 63 64 65 66
    - clang-format --version
    - doxygen --version
    - cp tools/_clang-format _clang-format
    - cp tools/whitespace_commit_checker.sh whitespace_commit_checker.sh
    - ./whitespace_commit_checker.sh
67 68
    - cd tools
    - ./build_doc.sh