Skip to content

Commit 03af235

Browse files
committed
travis ci
1 parent 5c27ccb commit 03af235

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
3+
after_success: npm run deploy
4+
5+
notifications:
6+
irc:
7+
use_notice: true
8+
on_success: change
9+
on_failure: change
10+
channels:
11+
- chat.freenode.net#graphql
12+
13+
env:
14+
global:
15+
- secure: "gWnrL6F1q2WE3B9EuTCTTV88Be4GzcemUl9nVo7rx4f3xgaJcqvGQ9riPdAgNaZagU6Hw3h5W5uhR9WMYdX+8GKUM/250cJJSTsCHgbTnccwVu9/ivkEwEcScdiAh/BzMJm15tWWfj8BBM1bdGD8hN6HfI08OOToYWzo8x/0/LdcULRVEdCt3VspfvaHGULbikCxj/zX9N/+uXjlSwAbQgxLVz60A5ChaOtxfh9gwRqKJ53BTMB9UJbVVcTyPbrEYW/aOOk5XOHpbysJIYg6WLtBjXhVz8dws6nDI0Axp5wjDmYVXgAtvzESqfo9/TGN9RF3svHv/cUJ5qF14o8wyLa01xUBZ9THSOgm7++AsSOvKb0vp8eqyDpO+YGz5VdfYiqiEWWqo57CfBoa34f+pAvkrhUD/qkOfbIU2YuJ1lWpiRRWDB4n6gMavqpvKaYTfWY8wpMC3j+plNDr8QRUAJK3f7DG3vTiCxBhpid/eSqAeCPORr8uCM+CtCELiSI0tg5YCNgjXnZPpra9dYfI4QbN2xmulbP8duD4oqfwUkUUAGVCBo0AxH8+Yyr64Wfs8ZleAQRedbMmlsccT3853jPhYRMB1gpuN3QmIRsZYI+4tDiFaY2iLfJ4ZLiZfymKg9qKCqQWKN2gpn0yLGu+KaV7VbNlh9s8arZujSBJ/sE="

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"scripts": {
1919
"test": "spec-md GraphQL.md > /dev/null",
20-
"build": "mkdir -p out; cp node_modules/spec-md/css/* out; spec-md GraphQL.md > out/index.html"
20+
"build": "mkdir -p out; cp node_modules/spec-md/css/* out; spec-md GraphQL.md > out/index.html",
21+
"deploy": "npm run build && (cd out && git init && git config user.name \"Travis CI\" && git config user.email \"[email protected]\" && git add . && git commit -m \"Deploy to GitHub Pages\" && git push --force --quiet \"https://${GH_TOKEN}@github.com/facebook/graphql.git\" master:gh-pages > /dev/null 2>1)"
2122
},
2223
"devDependencies": {
2324
"spec-md": "0.3.7"

0 commit comments

Comments
 (0)