build(analytics): add basic ci job tracking
This commit is contained in:
parent
ae7f76e91f
commit
df13e0a581
12
.travis.yml
12
.travis.yml
|
@ -50,6 +50,8 @@ addons:
|
||||||
firefox: "38.0"
|
firefox: "38.0"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- node tools/analytics/build-analytics start ci job
|
||||||
|
- node tools/analytics/build-analytics start ci before_install
|
||||||
- echo ${TSDRC} > .tsdrc
|
- echo ${TSDRC} > .tsdrc
|
||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- export GIT_SHA=$(git rev-parse HEAD)
|
- export GIT_SHA=$(git rev-parse HEAD)
|
||||||
|
@ -58,23 +60,33 @@ before_install:
|
||||||
- sh -e /etc/init.d/xvfb start
|
- sh -e /etc/init.d/xvfb start
|
||||||
- if [[ -e SKIP_TRAVIS_TESTS ]]; then { cat SKIP_TRAVIS_TESTS ; exit 0; } fi
|
- if [[ -e SKIP_TRAVIS_TESTS ]]; then { cat SKIP_TRAVIS_TESTS ; exit 0; } fi
|
||||||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && SAUCE_USERNAME="angular2-ci" && SAUCE_ACCESS_KEY="693ebc16208a-0b5b-1614-8d66-a2662f4e" || true'
|
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && SAUCE_USERNAME="angular2-ci" && SAUCE_ACCESS_KEY="693ebc16208a-0b5b-1614-8d66-a2662f4e" || true'
|
||||||
|
- node tools/analytics/build-analytics success ci before_install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- node tools/analytics/build-analytics start ci install
|
||||||
# Check the size of caches
|
# Check the size of caches
|
||||||
- du -sh ./node_modules || true
|
- du -sh ./node_modules || true
|
||||||
# Install npm dependecies
|
# Install npm dependecies
|
||||||
- npm install
|
- npm install
|
||||||
|
- node tools/analytics/build-analytics success ci install
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- node tools/analytics/build-analytics start ci before_script
|
||||||
- mkdir -p $LOGS_DIR
|
- mkdir -p $LOGS_DIR
|
||||||
- ./scripts/ci/presubmit-queue-setup.sh
|
- ./scripts/ci/presubmit-queue-setup.sh
|
||||||
|
- node tools/analytics/build-analytics success ci before_script
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- node tools/analytics/build-analytics start ci script
|
||||||
- ./scripts/ci/build_and_test.sh ${MODE}
|
- ./scripts/ci/build_and_test.sh ${MODE}
|
||||||
|
- node tools/analytics/build-analytics success ci script
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
- node tools/analytics/build-analytics start ci after_script
|
||||||
- ./scripts/ci/print-logs.sh
|
- ./scripts/ci/print-logs.sh
|
||||||
- ./scripts/ci/after-script.sh
|
- ./scripts/ci/after-script.sh
|
||||||
|
- node tools/analytics/build-analytics success ci after_script
|
||||||
|
- if [[ $TRAVIS_TEST_RESULT -eq 0 ]]; then node tools/analytics/build-analytics success ci job; else node tools/analytics/build-analytics error ci job; fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
|
|
Loading…
Reference in New Issue