Skip to content
Snippets Groups Projects
Commit fcb6a16e authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

fix gitlab-ci yml

parent f7045b50
No related branches found
No related tags found
1 merge request!79Fixing pipeline
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment