# ---------------------------------------------------------------------------- #
## \file gitlab-ci.yml
## \author Sebastien Beaugrand
## \sa http://beaugrand.chez.com/
## \copyright CeCILL 2.1 Free Software license
# ---------------------------------------------------------------------------- #
variables:
  PROJECT: project-four
  lserver: http://localhost:8383/
  verbose: -v
include:
  - local: /../makefiles/package.yml
prebuild:
  stage: build
  script:
    - mkdir -p build
    - cd build
    - >
      test -f abstractstubserver.h ||
      jsonrpcstub ../spec.json --cpp-server=AbstractStubServer
test1:
  stage: test
  script:
    - make --no-print-directory
    - ./test1.exp
test2:
  extends: rtest
  script:
    - make --no-print-directory
    - ./test2.exp $IP
test3:
  extends: xtest
  script:
    - make --no-print-directory
    - ./test2.exp $IP
test4:
  stage: test
  script:
    - make --no-print-directory
    - ./test4.exp
test5:
  stage: test
  script:
    - make --no-print-directory
    - ./test5.exp
test6:
  stage: test
  script:
    - make --no-print-directory
    - ./test6.py $lserver $verbose