.gitlab-ci.yml 1.48 KB
Newer Older
Daniel Smith's avatar
Daniel Smith committed
1 2 3 4 5 6 7 8 9 10 11 12
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options

# you can delete this line if you're not using Docker
# image: busybox:latest

before_script:
  - echo "Starting Runner"

after_script:
  - echo "Finished"

Daniel Smith's avatar
Daniel Smith committed
13
build_with_linux:
Daniel Smith's avatar
Daniel Smith committed
14
  stage: build
Daniel Smith's avatar
Daniel Smith committed
15 16
  tags:
    - linux
Daniel Smith's avatar
Daniel Smith committed
17 18
  script:
    - echo "Starting Build"
19
    - mkdir build && cd build
Andy Nichols's avatar
Andy Nichols committed
20
    - ~/Qt/5.12.3/gcc_64/bin/qmake ../qtquick3d.pro
Daniel Smith's avatar
Daniel Smith committed
21
    - make
22 23 24 25 26 27 28
    - make sub-tests
    - cd tests && make check
  # artifacts:
  #   name: "$CI_JOB_NAME"
  #   paths:
  #   - build/
  #   expire_in: 1 week
Daniel Smith's avatar
Daniel Smith committed
29

30 31 32 33 34 35 36 37 38
# test_with_linux:
#   stage: test
#   tags:
#     - linux
#   script:
#     - cd tests
#     - make check
#   dependencies:
#     - build_with_linux
Daniel Smith's avatar
Daniel Smith committed
39 40 41 42 43 44 45

build_with_windows:
  stage: build
  tags:
    - windows
  script:
    - echo "Starting Build"
46
    - "call \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\""
47 48
    - mkdir build
    - cd build
Andy Nichols's avatar
Andy Nichols committed
49
    - "\"C:\\Qt\\5.12.3\\msvc2017_64\\bin\\qmake.exe\" ..\\qtquick3d.pro"
Daniel Smith's avatar
Daniel Smith committed
50
    - "\"C:\\JOM\\JOM.exe\" /J 9"
51 52 53 54 55 56 57 58
    - "\"C:\\JOM\\JOM.exe\" sub-tests /J 9"
    - cd tests
    - "\"C:\\JOM\\JOM.exe\" check"
  # artifacts:
  #   name: "%CI_JOB_NAME"
  #   paths:
  #   - build\
  #   expire_in: 1 week
Daniel Smith's avatar
Daniel Smith committed
59

60 61 62 63 64 65 66 67 68
# test_with_windows:
#   stage: test
#   tags:
#     - windows
#   script:
#     - cd "tests"
#     - "\"C:\\JOM\\JOM.exe\" check"
#   dependencies:
#     - build_with_windows