Skip to content
Snippets Groups Projects
.gitlab-ci.yml 4.42 KiB
Newer Older
  - simplelexer
  - generatedlexer
  - descentparser
  - generatedparser
  - astparser
  - visitors
  - codegenerator
build_all:
  stage: build
  image: czen/ubuntu_xbuild
  script:
    - ./prebuild.sh
    - ./build.sh
  artifacts:
    paths:
      - ./NunitReportParser/bin/Debug/NunitReportParser.exe
      - ./TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
      - ./TestLexer/bin/Debug/TestLexer.dll
      - ./TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
      - ./TestDescentParser/bin/Debug/TestDescentParser.dll
      - ./TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
      - ./TestASTParser/bin/Debug/TestASTParser.dll
      - ./TestVisitors/bin/Debug/TestVisitors.dll
      - ./TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
Anton Bagliy's avatar
Anton Bagliy committed

testsimplelexer:
  stage: simplelexer
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestSimpleLexer/bin/Debug/TestSimpleLexer.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi
testlexer:
  stage: lexer
  image: czen/ubuntu_xbuild
  allow_failure: true
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestLexer/bin/Debug/TestLexer.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi

testgeneratedlexer:
  stage: generatedlexer
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi

testdescentparser:
  stage: descentparser
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - ./build.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestDescentParser/bin/Debug/TestDescentParser.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi
  tags:
    - docker        

testgeneratedparser:
  stage: generatedparser
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - ./build.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestGeneratedParser/bin/Debug/TestGeneratedParser.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi
  tags:
    - docker            

testastparser:
  stage: astparser
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - ./build.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestASTParser/bin/Debug/TestASTParser.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi
  tags:
    - docker                

testvisitors:
  stage: visitors
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - ./build.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestVisitors/bin/Debug/TestVisitors.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi
  tags:
    - docker                

testcodegenerator:
  stage: codegenerator
  image: czen/ubuntu_xbuild
  allow_failure: true
  script:
    - ./prebuild.sh
    - ./build.sh
    - mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestCodeGenerator/bin/Debug/TestCodeGenerator.dll || FAILED=true
    - mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
    - if [ $FAILED ]
    -     then false
    - fi