tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

before.sh (1602B)


      1 #!/bin/bash -vex
      2 
      3 set -x -e
      4 
      5 echo "running as" $(id)
      6 
      7 if [[ -z "${WORKSPACE}" ]]; then
      8  export WORKSPACE=/builds/worker/workspace
      9 fi
     10 
     11 set -v
     12 
     13 # Download the gradle-python-envs plugin
     14 # See https://github.com/gradle/plugin-portal-requests/issues/164
     15 pushd ${WORKSPACE}
     16 mkdir -p android-gradle-dependencies
     17 pushd android-gradle-dependencies
     18 
     19 PYTHON_ENVS_VERSION="0.0.31"
     20 
     21 PYTHON_ENVS_BASE_URL=https://plugins.gradle.org/m2/gradle/plugin/com/jetbrains/python/gradle-python-envs
     22 
     23 wget --no-parent --recursive --execute robots=off "${PYTHON_ENVS_BASE_URL}/${PYTHON_ENVS_VERSION}/"
     24 popd
     25 popd
     26 
     27 # Export NEXUS_WORK so that `after.sh` can use it.
     28 export NEXUS_WORK=${WORKSPACE}/sonatype-nexus-work
     29 mkdir -p ${NEXUS_WORK}/conf
     30 cp ${WORKSPACE}/build/src/taskcluster/scripts/misc/android-gradle-dependencies/nexus.xml ${NEXUS_WORK}/conf/nexus.xml
     31 
     32 # Nexus needs Java 8
     33 PATH=$MOZ_FETCHES_DIR/jdk-8/bin:$PATH RUN_AS_USER=worker $MOZ_FETCHES_DIR/sonatype-nexus/bin/nexus restart
     34 
     35 # Wait "a while" for Nexus to actually start.  Don't fail if this fails.
     36 wget --quiet --retry-connrefused --waitretry=2 --tries=100 \
     37  http://localhost:8081/nexus/service/local/status || true
     38 rm -rf status
     39 
     40 # It's helpful when debugging to see the "latest state".
     41 curl http://localhost:8081/nexus/service/local/status || true
     42 
     43 # Verify Nexus has actually started.  Fail if this fails.
     44 curl --fail --silent --location http://localhost:8081/nexus/service/local/status | grep '<state>STARTED</state>'
     45 
     46 # It's helpful when debugging to see the repository configurations.
     47 curl http://localhost:8081/nexus/service/local/repositories || true