Unverified Commit ee2979a9 authored by Chris R's avatar Chris R Committed by GitHub
Browse files

Merge pull request #42 from s0undt3ch/master

Make sure `.bashrc` is sourced. Allow passing `SRCDIR` as an env variable
parents 474fa5f8 d35a2108
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,14 @@
# Fail on errors.
set -e

# Make sure .bashrc is sourced
. /root/.bashrc

# Allow the workdir to be set using an env var.
# Useful for CI pipiles which use docker for their build steps
# and don't allow that much flexibility to mount volumes
WORKDIR=${SRCDIR:-/src}

#
# In case the user specified a custom URL for PYPI, then use
# that one, instead of the default one.
@@ -21,7 +29,7 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
    cat /root/pip/pip.conf
fi

cd /src
cd $WORKDIR

if [ -f requirements.txt ]; then
    pip install -r requirements.txt
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,14 @@
# Fail on errors.
set -e

# Make sure .bashrc is sourced
. /root/.bashrc

# Allow the workdir to be set using an env var.
# Useful for CI pipiles which use docker for their build steps
# and don't allow that much flexibility to mount volumes
WORKDIR=${SRCDIR:-/src}

#
# In case the user specified a custom URL for PYPI, then use
# that one, instead of the default one.
@@ -21,7 +29,7 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
    cat /root/pip/pip.conf
fi

cd /src
cd $WORKDIR

if [ -f requirements.txt ]; then
    pip install -r requirements.txt
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,14 @@
# Fail on errors.
set -e

# Make sure .bashrc is sourced
. /root/.bashrc

# Allow the workdir to be set using an env var.
# Useful for CI pipiles which use docker for their build steps
# and don't allow that much flexibility to mount volumes
WORKDIR=${SRCDIR:-/src}

#
# In case the user specified a custom URL for PYPI, then use
# that one, instead of the default one.
@@ -21,7 +29,7 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
    cat /wine/drive_c/users/root/pip/pip.ini
fi

cd /src
cd $WORKDIR

if [ -f requirements.txt ]; then
    pip install -r requirements.txt
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,14 @@
# Fail on errors.
set -e

# Make sure .bashrc is sourced
. /root/.bashrc

# Allow the workdir to be set using an env var.
# Useful for CI pipiles which use docker for their build steps
# and don't allow that much flexibility to mount volumes
WORKDIR=${SRCDIR:-/src}

#
# In case the user specified a custom URL for PYPI, then use
# that one, instead of the default one.
@@ -21,7 +29,7 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
    cat /wine/drive_c/users/root/pip/pip.ini
fi

cd /src
cd $WORKDIR

if [ -f requirements.txt ]; then
    pip install -r requirements.txt
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,14 @@
# Fail on errors.
set -e

# Make sure .bashrc is sourced
. /root/.bashrc

# Allow the workdir to be set using an env var.
# Useful for CI pipiles which use docker for their build steps
# and don't allow that much flexibility to mount volumes
WORKDIR=${SRCDIR:-/src}

#
# In case the user specified a custom URL for PYPI, then use
# that one, instead of the default one.
@@ -21,7 +29,7 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
    cat /wine/drive_c/users/root/pip/pip.ini
fi

cd /src
cd $WORKDIR

if [ -f requirements.txt ]; then
    pip install -r requirements.txt