Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx messenger iOS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Commits
fcb6a16e
Commit
fcb6a16e
authored
2 years ago
by
Bruno Muniz
Browse files
Options
Downloads
Patches
Plain Diff
fix gitlab-ci yml
parent
f7045b50
No related branches found
No related tags found
1 merge request
!79
Fixing pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-55
16 additions, 55 deletions
.gitlab-ci.yml
with
16 additions
and
55 deletions
.gitlab-ci.yml
+
16
−
55
View file @
fcb6a16e
stages
:
stages
:
-
test
-
test
#- archive
#- deploy
variables
:
LANG
:
"
en_US.UTF-8"
LC_ALL
:
"
en_US.UTF-8"
REPO_DIR
:
gitlab.com/elixxir
REPO_NAME
:
client-ios
before_script
:
before_script
:
-
bundle install
-
echo $CI_BUILD_REF
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
echo $CI_PROJECT_DIR
-
mkdir -p ~/.ssh
-
echo $PWD
-
chmod 700 ~/.ssh
-
swift --version
-
ssh-keyscan -t rsa $GITLAB_SERVER > ~/.ssh/known_hosts
-
xcodebuild -version
-
eval $(ssh-agent -s)
Unit tests
:
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
tags
:
-
mkdir -p ~/.ssh
-
ios
-
chmod 700 ~/.ssh
-
ssh-keyscan -t rsa $GITLAB_SERVER > ~/.ssh/known_hosts
unit-testing
:
stage
:
test
stage
:
test
tags
:
-
ios
script
:
script
:
-
echo test
-
set -o pipefail && xcodebuild -workspace 'client-ios.xcworkspace' -scheme 'Release' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14' test
# - bundle exec fastlane test scheme:'Mock'
retry
:
1
# - cp -R /Users/elixxir/Library/Developer/Xcode/DerivedData/client-ios*/Build/Products/Debug-iphonesimulator/client-ios.app ./
# - cp -R /Users/elixxir/Library/Developer/Xcode/DerivedData/client-ios*/Build/Products/Debug-iphonesimulator/client-ios.app.dSYM ./
# artifacts:
# paths:
# - ./client-ios.app
# - ./client-ios.app.dSYM
#Mock:
# tags:
# - ios
# stage: archive
# script:
# - bundle exec fastlane archive scheme:'Mock' app_id:'xx.messenger.mock' notifications_app_id:'xx.messenger.mock.notifications' gym_method:'development' method:'development'
# needs: ['Unit tests']
# artifacts:
# paths:
# - ./Mock.ipa
#Release:
# tags:
# - ios
# stage: archive
# script:
# - bundle exec fastlane archive scheme:'Release' app_id:'xx.messenger' notifications_app_id:'xx.messenger.notifications' gym_method:'app-store' method:'appstore'
# needs: ['Unit tests']
# artifacts:
# paths:
# - ./Release.ipa
#TestFlight:
# tags:
# - ios
# stage: deploy
# script:
# - bundle exec fastlane deploy scheme:'Release'
# needs: ['Release']
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment