add git ci file
This commit is contained in:
parent
cd6f56a3fc
commit
0812eba421
92
.gitlab-ci.yml
Normal file
92
.gitlab-ci.yml
Normal file
@ -0,0 +1,92 @@
|
||||
stages:
|
||||
- test
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- echo "This job tests something"
|
||||
#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
|
||||
Loading…
Reference in New Issue
Block a user