2018-04-08 01:40:18 +03:00
|
|
|
# build needs to be able to find the following libraries:
|
|
|
|
# - OpenEXR(libHalf.dylib libHalf.a)
|
|
|
|
# - HDF5(hdf5.a)
|
|
|
|
# - Alembic (libAlembic.a)
|
|
|
|
|
|
|
|
# sourcedir needs submodule initialization (to compile googletest)
|
|
|
|
# - git submodule update --init --recursive
|
2018-04-03 23:25:39 +03:00
|
|
|
|
|
|
|
image: node:6.10.0
|
|
|
|
|
2018-04-30 19:16:04 +03:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2018-04-03 23:25:39 +03:00
|
|
|
stages:
|
2018-04-04 01:12:08 +03:00
|
|
|
- build
|
2018-05-03 00:35:46 +03:00
|
|
|
- test
|
2018-07-05 00:37:21 +03:00
|
|
|
#- push_to_packman_staging
|
2018-04-03 23:25:39 +03:00
|
|
|
|
2018-07-17 22:18:13 +03:00
|
|
|
build:mac:
|
2018-04-08 01:40:18 +03:00
|
|
|
stage: build
|
|
|
|
tags:
|
2018-07-09 23:20:36 +03:00
|
|
|
- mac
|
2018-04-08 01:40:18 +03:00
|
|
|
script:
|
2018-07-10 17:27:40 +03:00
|
|
|
- ./build.sh
|
2018-05-01 23:28:51 +03:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
|
|
|
|
paths:
|
2018-07-17 22:18:13 +03:00
|
|
|
- External/install
|
|
|
|
- build/install
|
2018-07-09 23:20:36 +03:00
|
|
|
expire_in: 1 hour
|
2018-04-08 01:40:18 +03:00
|
|
|
# Important! Do not remove this after_script as the VM will live for 12 hours before being destroyed!
|
|
|
|
after_script:
|
|
|
|
- /opt/post_build_script.sh
|
|
|
|
|
2018-07-17 22:18:13 +03:00
|
|
|
build:win:
|
2018-04-04 01:12:08 +03:00
|
|
|
stage: build
|
2018-04-08 01:40:18 +03:00
|
|
|
tags:
|
2018-07-09 23:32:26 +03:00
|
|
|
- win
|
2018-04-08 01:40:18 +03:00
|
|
|
script:
|
2018-07-10 17:27:40 +03:00
|
|
|
- build.cmd
|
2018-05-01 23:28:51 +03:00
|
|
|
artifacts:
|
|
|
|
name: "%CI_JOB_STAGE%-%CI_COMMIT_REF_NAME%"
|
|
|
|
paths:
|
2018-07-17 22:18:13 +03:00
|
|
|
- External/install
|
|
|
|
- build/install
|
2018-07-09 23:32:26 +03:00
|
|
|
expire_in: 1 hour
|
2018-04-08 01:40:18 +03:00
|
|
|
# Important! Do not remove this after_script as the VM will live for 12 hours before being destroyed!
|
|
|
|
after_script:
|
|
|
|
- C:\Users\builduser\post_build_script.bat
|
|
|
|
|
2018-07-17 22:18:13 +03:00
|
|
|
build:lin:
|
2018-04-08 01:40:18 +03:00
|
|
|
stage: build
|
|
|
|
tags:
|
2018-07-17 22:18:13 +03:00
|
|
|
- lin
|
2018-04-08 01:40:18 +03:00
|
|
|
script:
|
2018-07-17 22:18:13 +03:00
|
|
|
- ./build.sh
|
2018-05-01 23:28:51 +03:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
|
|
|
|
paths:
|
2018-07-17 22:18:13 +03:00
|
|
|
- External/install
|
|
|
|
- build/install
|
|
|
|
expire_in: 1 hour
|
2018-04-08 01:40:18 +03:00
|
|
|
# Important! Do not remove this after_script as the VM will live for 12 hours before being destroyed!
|
|
|
|
after_script:
|
|
|
|
- /opt/post_build_script.sh
|
|
|
|
|
2018-07-17 22:18:13 +03:00
|
|
|
test:mac:
|
2018-04-08 01:40:18 +03:00
|
|
|
stage: test
|
2018-05-02 01:06:15 +03:00
|
|
|
tags:
|
2018-07-09 23:20:36 +03:00
|
|
|
- mac
|
2018-04-17 02:23:35 +03:00
|
|
|
script:
|
2018-05-03 00:33:36 +03:00
|
|
|
- npm test
|
2018-05-01 23:28:51 +03:00
|
|
|
dependencies:
|
2018-07-17 22:18:13 +03:00
|
|
|
- build:mac
|
2018-05-01 23:28:51 +03:00
|
|
|
|
2018-07-17 22:18:13 +03:00
|
|
|
test:win:
|
2018-04-08 01:40:18 +03:00
|
|
|
stage: test
|
2018-05-02 01:09:30 +03:00
|
|
|
tags:
|
2018-07-17 22:18:13 +03:00
|
|
|
- win
|
2018-04-17 02:23:35 +03:00
|
|
|
script:
|
2018-05-03 00:33:36 +03:00
|
|
|
- npm test
|
2018-05-01 23:28:51 +03:00
|
|
|
dependencies:
|
2018-07-17 22:18:13 +03:00
|
|
|
- build:win
|
2018-05-01 23:28:51 +03:00
|
|
|
|
2018-07-17 22:18:13 +03:00
|
|
|
test:lin:
|
2018-04-04 01:12:08 +03:00
|
|
|
stage: test
|
2018-07-17 22:18:13 +03:00
|
|
|
tags:
|
|
|
|
- lin
|
|
|
|
script:
|
2018-05-03 00:33:36 +03:00
|
|
|
- npm test
|
2018-05-01 23:28:51 +03:00
|
|
|
dependencies:
|
2018-07-17 22:18:13 +03:00
|
|
|
- build:lin
|
2018-05-01 23:28:51 +03:00
|
|
|
|
2018-07-09 23:23:31 +03:00
|
|
|
#push_to_packman_staging:
|
|
|
|
# stage: push_to_packman_staging
|
|
|
|
# only:
|
|
|
|
# - /^v\d*$/
|
|
|
|
# except:
|
|
|
|
# - branches
|
|
|
|
# script:
|
|
|
|
# - curl -u $USER_NAME:$API_KEY https://staging-packages.unity.com/auth > .npmrc
|
2018-07-17 22:18:13 +03:00
|
|
|
# - npm publish
|