X Tutup
Skip to content

Commit df13e0a

Browse files
committed
build(analytics): add basic ci job tracking
1 parent ae7f76e commit df13e0a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ addons:
5050
firefox: "38.0"
5151

5252
before_install:
53+
- node tools/analytics/build-analytics start ci job
54+
- node tools/analytics/build-analytics start ci before_install
5355
- echo ${TSDRC} > .tsdrc
5456
- export DISPLAY=:99.0
5557
- export GIT_SHA=$(git rev-parse HEAD)
@@ -58,23 +60,33 @@ before_install:
5860
- sh -e /etc/init.d/xvfb start
5961
- if [[ -e SKIP_TRAVIS_TESTS ]]; then { cat SKIP_TRAVIS_TESTS ; exit 0; } fi
6062
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && SAUCE_USERNAME="angular2-ci" && SAUCE_ACCESS_KEY="693ebc16208a-0b5b-1614-8d66-a2662f4e" || true'
63+
- node tools/analytics/build-analytics success ci before_install
6164

6265
install:
66+
- node tools/analytics/build-analytics start ci install
6367
# Check the size of caches
6468
- du -sh ./node_modules || true
6569
# Install npm dependecies
6670
- npm install
71+
- node tools/analytics/build-analytics success ci install
6772

6873
before_script:
74+
- node tools/analytics/build-analytics start ci before_script
6975
- mkdir -p $LOGS_DIR
7076
- ./scripts/ci/presubmit-queue-setup.sh
77+
- node tools/analytics/build-analytics success ci before_script
7178

7279
script:
80+
- node tools/analytics/build-analytics start ci script
7381
- ./scripts/ci/build_and_test.sh ${MODE}
82+
- node tools/analytics/build-analytics success ci script
7483

7584
after_script:
85+
- node tools/analytics/build-analytics start ci after_script
7686
- ./scripts/ci/print-logs.sh
7787
- ./scripts/ci/after-script.sh
88+
- node tools/analytics/build-analytics success ci after_script
89+
- 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
7890

7991
notifications:
8092
webhooks:

0 commit comments

Comments
 (0)
X Tutup