forked from bclary/mozilla-bitbar-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc
37 lines (30 loc) · 1.21 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# .bashrc
# Source global definitions
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
if [ -f /etc/profile ]; then
. /etc/profile
fi
export ANDROID_HOME=/builds/worker/android-sdk-linux
# to handle https://issuetracker.google.com/issues/327026299 issues for now
# symptom: `adb devices` issues like:
# usb_libusb.cpp:944 failed to register inotify watch on '/dev/bus/usb/006/', falling back to sleep: No such file or directory
export ADB_LIBUSB=0
# old jdk path
# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# jdk 17 and newer androdi tools path
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
# set path to include android tools
export PATH=${PATH}:/usr/local/bin:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/platform-tools/bin:${ANDROID_HOME}/cmdline-tools/latest/bin
# Work around broken libcurl3 minidump_stackwalk requirement.
export LD_LIBRARY_PATH=/builds/worker/LD_LIBRARY
# setup pyenv
export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# Set umask 0 so that a setuid adb will create world readable/writeable
# files while the process is running as the worker user.
umask 0