I push my project on gitlab to test git ci, but it does not work

This is my error information.

Running with gitlab-ci-multi-runner 1.5.3 (fb49c47) Using Shell executor... Running on luckyxmobiledeMac-mini-2.local... Fetching changes... HEAD is now at e56d7ac Update README.md Checking out e56d7ace as master... bash: line 4: shell_session_update: command not found ERROR: Build failed: exit status 127 

This is the content of my .gitlab-ci.yml: =

     stages:
       - build   
     build_project:
       stage: build  

       script:  
         - xcodebuild clean -project ProjectName.xcodeproj -scheme SchemeName |  xcpretty  
         - xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform = iOS Simulator, name = iPhone 6s, OS = 9.2' |  xcpretty -s
       tags:  
         - ios_9-2  
         - osx_10-11
+6
source share
1 answer

Based on this question on Super User , this seems to be a problem with the rvm package on the server.

You can read this question and answer for a full explanation of what the problem is, but their solution is to upgrade rvm to version 1.26.11 or higher.

To upgrade to the latest stable version, follow these steps:

 rvm get stable 
+3
source

All Articles