Can't install linuxbrew

android
circle.yml

#1

I’m new to circle CI and I’m trying to run my appium automation tests on Android builded with Maven.
I need to install linuxbrew but get this error.

echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/circleci/.cache/Homebrew/
/home/linuxbrew/.linuxbrew/Homebrew
==> The following new directories will be created:
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/Homebrew
/home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
/home/linuxbrew/.linuxbrew/var
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/chown :circleci /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var
==> /usr/bin/sudo /bin/chmod g+rwx /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var
==> /usr/bin/sudo /bin/chmod 755 /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
-e:70:in `block in shell_s': undefined method `gsub' for nil:NilClass (NoMethodError)
	from -e:70:in `map'
	from -e:70:in `shell_s'
	from -e:75:in `ohai'
	from -e:95:in `sudo'
	from -e:319:in `<main>'
Exited with code 1
-----------------------------------------------

My config is
version: 2
jobs:
build:
docker:
- image: circleci/android:api-26-alpha

      steps:
       - run:
            name: Setup emulator
            command: sdkmanager "system-images;android-22;default;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-22;default;armeabi-v7a"
       - run:
            name: Launch emulator
            command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on
            background: true
       - checkout
       - run: echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
       - run: brew update
       - run: brew upgrade node
       - run: npm install -g npm
       - run: npm install -g appium
       - run: npm install wd
       - run: brew install maven
       - run:
            name: Start Appium
            command: appium --address 127.0.0.1 --port 4723
            background : true
       - run: mvn test -DsuiteXmlFile="smoke.xml"

       - store_artifacts:
              path: target/surefire-reports
              destination: tr1
       - store_test_results:
              path: target/surefire-reports

Any help or advice?
Thanks a lot


#2

There’s an error in there that could be web-searched, but I can’t copy and paste it because the logs are an image (read this). Would you remove the image and replace it with a formatted block of logs? Thanks!


#3

Done. Thanks!


#4

Both sections need code formatting. I suspect the first block is in shouty title format because of the rule-off below. To apply code formatting, select the block and click the </> icon, and then check it in the preview window.

/me greatly misses Stack Overflow editing powers…


#5

Done. Thanks


#6

Not quite, but hey-ho - I can read it :smiley:

Possible similar question - do any of the solutions therein help at all?


#7

Hi halfer, thanks for your fast responses.
I didn’t find solution for this problem. I installed appium with another steps.
Thank you.


#8

I found that Android emulator on circleCi2.0 works veryyyy veryyyyyy slow. Decided to move on circle1.0 where are x86 emulator maintenance.

Can you tell when CircleCI2.0 will maintain android x86 emulators?


#9