128 lines
3.5 KiB
YAML
128 lines
3.5 KiB
YAML
stages:
|
|
- test
|
|
- build
|
|
- deploy
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- echo "This job tests something"
|
|
tags:
|
|
- xcode_12_2
|
|
|
|
build_project:
|
|
stage: build
|
|
script:
|
|
- xcodebuild build -project MVMCore/MVMCore.xcodeproj -scheme FatLibrary | xcpretty
|
|
- BUILD_DIR=$(xcodebuild -showBuildSettings -project MVMCore/MVMCore.xcodeproj | grep BUILD_DIR)
|
|
artifacts:
|
|
paths:
|
|
- ${BUILD_DIR}/universal/MVMCore.framework
|
|
expire_in: 1 week
|
|
only:
|
|
- branches
|
|
- feature/testing
|
|
tags:
|
|
- xcode_12_2
|
|
|
|
deploy_snapshot:
|
|
stage: deploy
|
|
script:
|
|
- cd Scripts && ./upload_remote_view_frameworks.sh
|
|
only:
|
|
- branches
|
|
- feature/testing
|
|
tags:
|
|
- bash_shell
|
|
environment:
|
|
name: oneartifactory
|
|
url: https://oneartifactoryprod.verizon.com/artifactory
|
|
variables:
|
|
ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory
|
|
##
|
|
#stages:
|
|
# # - test
|
|
# - build # generate the remote view framework
|
|
# - deploy # deploy the framework to Artifactory as a snapshot
|
|
# - tag # on manual confirmation, tag the repository
|
|
# - go live # move the snapshot binary on artifactory into live status
|
|
#
|
|
##run_unit_tests:
|
|
## stage: test
|
|
## script:
|
|
## - xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.2' | xcpretty -s
|
|
## tags:
|
|
## - xcode_12
|
|
#
|
|
#build_project:
|
|
# stage: build
|
|
# script:
|
|
# - xcodebuild build -workspace RemoteView.xcworkspace -scheme RemoteViewAggregate | xcpretty
|
|
# artifacts:
|
|
# paths:
|
|
# - RemoteViewFramework/**
|
|
# expire_in: 1 week
|
|
# only:
|
|
# - branches
|
|
# - develop
|
|
# tags:
|
|
# - xcode_12_2
|
|
# environment:
|
|
# name: oneartifactory
|
|
# url: https://oneartifactoryprod.verizon.com/artifactory
|
|
# variables:
|
|
# ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory
|
|
#
|
|
#deploy_snapshot:
|
|
# stage: deploy
|
|
# script:
|
|
# - cd Scripts && ./upload_remote_view_frameworks.sh
|
|
# only:
|
|
# - branches
|
|
# - develop
|
|
# tags:
|
|
# - bash_shell
|
|
# environment:
|
|
# name: oneartifactory
|
|
# url: https://oneartifactoryprod.verizon.com/artifactory
|
|
# variables:
|
|
# ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory
|
|
#
|
|
#promote_snapshot:
|
|
# stage: go live
|
|
# # Prevent artifacts from needing to re-download. Everything we need is in Artifactory.
|
|
# dependencies: []
|
|
# script:
|
|
# # Grab the framework version from the xcode project.
|
|
# - framework_ver=$(cd RemoteView && agvtool vers -terse)
|
|
# - cd Scripts && ./promote_remote_view_frameworks.sh $framework_ver
|
|
# only:
|
|
# - tags
|
|
# tags:
|
|
# - bash_shell
|
|
# environment:
|
|
# name: oneartifactory
|
|
# url: https://oneartifactoryprod.verizon.com/artifactory
|
|
# variables:
|
|
# ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory
|
|
#
|
|
#create_version_tag:
|
|
# stage: tag
|
|
# when: manual
|
|
# # Prevent artifacts from needing to re-download.
|
|
# dependencies: []
|
|
# script:
|
|
# # Grab the framework version from the xcode project and create a tag of the version.
|
|
# - framework_ver=$(cd RemoteView && agvtool vers -terse)
|
|
# - git tag -a "v${framework_ver}" -m "Version ${framework_ver} created by gitlab-ci Build"
|
|
# # Extract the git repo url to ssh version (git@gitlab.verizon.com)
|
|
# - ci_push_repo="git@${CI_SERVER_HOST}:${CI_PROJECT_PATH}.git"
|
|
# - echo $ci_push_repo
|
|
# # Set the remote url for pushing assuming the gitlab runner has SSH access to the repo.
|
|
# - git remote set-url --push origin $ci_push_repo
|
|
# - git push origin "v${framework_ver}"
|
|
# only:
|
|
# - develop
|
|
# tags:
|
|
# - bash_shell
|