-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis build should first run build, then gen docs and examples
- Loading branch information
1 parent
9cd3105
commit 9f2186d
Showing
4 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
language: node_js | ||
node_js: | ||
- stable | ||
script: | ||
- bash scripts/build.sh | ||
after_success: | ||
- bash gendocs.sh | ||
- bash scripts/gendocs.sh | ||
- bash scripts/genexamples.sh | ||
env: | ||
global: | ||
- ENCRYPTION_LABEL: a34ff6591ac8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
body='{ | ||
"request": { | ||
"message": "Regen examples from module update", | ||
"branch": "master" | ||
}}' | ||
|
||
curl -s -X POST \ | ||
-H "Content-Type: application/json" \ | ||
-H "Accept: application/json" \ | ||
-H "Travis-API-Version: 3" \ | ||
-H "Authorization: token $TRAVIS_API_TOKEN" \ | ||
-d "$body" \ | ||
https://api.travis-ci.org/repo/awayjs%2Fawayjs-examples/requests |