-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
47 lines (45 loc) · 3.22 KB
/
.travis.yml
File metadata and controls
47 lines (45 loc) · 3.22 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# You must sign into travis-ci.org and set the commit hook on your project for travis to
# run on your project. The secure: variable must be generated by running `travis encrypt`
# on a github oauth key that you can generate using curl.
language:
node_js
node_js:
- 5.7.0
branches:
only:
- master
env:
global:
- NPM_CONFIG_PROGRESS="false" # no progress bar for npm speeds up build
# GH_OAUTH_TOKEN is the oauth token generated as described at
# https://help.github.com/articles/creating-an-oauth-token-for-command-line-use
#
# curl -u 'username' -d '{"scopes":["repo"],"note":"push to gh-pages from travis"}' https://api.github.com/authorizations
#
# It must be encrypted using the travis gem
# http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
#
# travis encrypt GH_OAUTH_TOKEN=XXXXXXXXXXXXXXX
#
# User specific env variables
- secure: WKY98PaxxLPud88qStM4s5EY+w7gj9abYkirZXXECqyOE2tIOa5dB4/hQS413nn/i7NoYLWkWR2l7lLklW2bjl1aSFVvmAPEDdof28rgELsMIUQO2j1wD1eoxLFo1FQUhW+paZczc5qqz0yjFCw4XEVDmm/ymjUXKWqvDQB0ZORvw6Y4fFvzs1vC8x/ZvnEtSERCLBw8CLguJxRf88LNhHV+Un87IyI/w9fchLx39Xe3McNCy3AqywtS2alLjkcYF0NhqryBAhEMEhjgUItIDdz40e8vZpGO0eH0k0/G8sqMBoXJXieNxYUeYRvpyAqEil2EJbNf8EppooaVFpRUZgtnARe1cdFNO1pe3V+rTu2bwaBHoC1WJDa2rntcnVhCLf0LZrPFE1pWPVQYFlNaFd3WDD+mMM92iPg/S1+jrbNoWxcwWJU+np3LFClzqWKtzl0EE7nRxP1D4QXSXyRDj/EdojG1TksiqIoQIG7e0KMn/vFALlGDlAHuUFpmaOYTLJ7ngElm8Dq2OVhojbCyecJXGhsB2RAgYyDO5ofsQP/8DfFxQ9MfElFBlcx8TrIzyg+N8uJe/2tY8Ti1kPGoMDeQQnr/dFuvYJYMU7CTeiPKkUvbOby7HdJYUEl8DMe20gqBOwVJMDmGy9e1R+NNeUb1JU8lZ6yeATrG9SGVzGs=
- GH_OWNER=punchtime
- GH_PROJECT_NAME=web
script:
- gulp
after_success:
# Any command that using GH_OAUTH_TOKEN must pipe the output to /dev/null to not expose your oauth token
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then cd site; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then if git checkout gh-pages; then git checkout -b gh-pages; fi; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git rm -r .; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then cp -R ../dist/* .; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then mkdir .well-known; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then cp ../dist/.well-known/assetlinks.json .well-known/; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then touch .nojekyll; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git add -f .; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git config user.email "punchtimeio@gmail.com"; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git config user.name "punchtime bot"; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git commit -am "built via travis [ci skip]"; fi
# Any command that using GH_OAUTH_TOKEN must pipe the output to /dev/null to not expose your oauth token; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1; fi