forked from census-instrumentation/opencensus-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (20 loc) · 790 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# See https://docs.travis-ci.com/user/deployment/pages/
# for more information on pages deployment.
language: node_js
node_js:
- "7"
install:
- npm install -g firebase-tools
- wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.32/hugo_0.32_Linux-64bit.deb
- sudo dpkg -i /tmp/hugo.deb
# Build the website
script:
- curl -L https://github.com/census-instrumentation/opencensus-php/archive/gh-pages.tar.gz | tar -xz --strip-components=1 -C static/api/php
- curl -L https://github.com/census-instrumentation/opencensus-python/archive/gh-pages.tar.gz | tar -xz --strip-components=1 -C static/api/python
- hugo
branches:
only:
- master
# Deploy to Firebase Hosting
after_success:
- firebase deploy --project opencensusio --token "$FIREBASE_TOKEN"