Skip to content
Snippets Groups Projects
.gitlab-ci.yml 16.73 KiB
variables:
    # set larger git depth, so git describe works properly
    GIT_DEPTH: 0
    USER: 'tarantool'

stages:
  - test
  - build
  - pack
  - sign
  - deploy
  - check-deployment
  - docker

.test:
    stage: test
    before_script:
      - git submodule update --init --recursive
      - git submodule foreach --recursive 'git clean -xffd'
      - git clean -xffd

luacheck:
    extends: .test
    tags: [docker]
    image: docker-public.binary.picodata.io/tarantool-testing:latest
    script:
      - make -f .test.mk luacheck

test-ubuntu:
    extends: .test
    retry: 2
    tags: [docker]
    image: docker-public.binary.picodata.io/tarantool-testing:latest
    script:
      - make -f .test.mk test-release

test_mac-m1:
    extends: .test
    tags: [mac-dev-m1]
    script:
      - ulimit -n 10240
      - sudo chown -R $(id -u) /private/tmp/t
      - make -f .test.mk build

checkpatch:
    extends: .test
    tags: [shell_p_t]
    script:
      - git clone git@github.com:tarantool/checkpatch.git
      - checkpatch/checkpatch.pl --color=always --git HEAD~1..HEAD

# run long tests and coverage on release build
coverage:
    extends: .test
    stage: build
    only:
      - web
      - tags
    retry: 2
    tags: [docker]
    image: docker-public.binary.picodata.io/tarantool-testing:latest
    variables:
      TEST_RUN_RETRIES: 3
      SERVER_START_TIMEOUT: 400
      REPLICATION_SYNC_TIMEOUT: 400
      TEST_TIMEOUT: 420
      NO_OUTPUT_TIMEOUT: 440
    script:
      - make -f .test.mk test-coverage