ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:30.64 GB of 70.42 GB (43.51%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ root/ hls/ scripts/ - drwxr-xr-x

Directory:
Viewing file:     travis.sh (2.64 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash
# https://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
set -ev

echo "travis_fold:start:npm_install"
npm ci
echo "travis_fold:end:npm_install"

if [ "${TRAVIS_MODE}" = "build" ]; then
  echo "travis_fold:start:lint"
  npm run lint
  echo "travis_fold:end:lint"
  echo "travis_fold:start:build"
  npm run type-check
  npm run build
  echo "travis_fold:end:build"
  echo "travis_fold:start:docs"
  npm run docs
  echo "travis_fold:end:docs"
  # check that hls.js doesn't error if requiring in node
  # see https://github.com/video-dev/hls.js/pull/1642
  node -e 'require("./" + require("./package.json").main)'
elif [ "${TRAVIS_MODE}" = "unitTests" ]; then
  npm run test:unit
elif [ "${TRAVIS_MODE}" = "release" ] || [ "${TRAVIS_MODE}" = "releaseAlpha" ] || [ "${TRAVIS_MODE}" = "netlifyPr" ] || [ "${TRAVIS_MODE}" = "netlifyBranch" ]; then
  # update the version
  if [[ $(git rev-parse --is-shallow-repository) = "true" ]]; then
    # make sure everything is fetched https://github.com/travis-ci/travis-ci/issues/3412
    git fetch --unshallow
  fi
  node ./scripts/set-package-version.js
  npm run lint
  npm run type-check
  npm run build:ci

  if [ "${TRAVIS_MODE}" = "release" ] || [ "${TRAVIS_MODE}" = "releaseAlpha" ]; then
    # unit tests don't work on netlify because they need chrome
    npm run test:unit

    if [[ $(node ./scripts/check-already-published.js) = "not published" ]]; then
      # write the token to config
      # see https://docs.npmjs.com/private-modules/ci-server-config
      echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
      if [ "${TRAVIS_MODE}" = "releaseAlpha" ]; then 
        npm publish --tag alpha
        echo "Published alpha."
        curl https://purge.jsdelivr.net/npm/hls.js@alpha
        curl https://purge.jsdelivr.net/npm/hls.js@alpha/dist/hls-demo.js
        echo "Cleared jsdelivr cache."
      elif [ "${TRAVIS_MODE}" = "release" ]; then
        tag=$(node ./scripts/get-version-tag.js)
        if [ "${tag}" = "alpha" ]; then
          # alpha (previously canary) is blacklisted because this is handled separately on every commit
          echo "alpha (previously canary) not supported as explicit tag"
          exit 1
        fi
        echo "Publishing tag: ${tag}"
        npm publish --tag "${tag}"
        curl "https://purge.jsdelivr.net/npm/hls.js@${tag}"
        echo "Published."
      fi
    else
      echo "Already published."
    fi
  fi
  npm run docs

  ./scripts/build-netlify.sh
  if [ "${TRAVIS_MODE}" = "release" ] || [ "${TRAVIS_MODE}" = "releaseAlpha" ]; then
    ./scripts/deploy-netlify.sh
  fi
else
  echo "Unknown travis mode: ${TRAVIS_MODE}" 1>&2
  exit 1
fi
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.1606 seconds