forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.68 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
language: node_js
node_js:
- '0.10'
script:
- |
if [ "$TEST_TYPE" = unit ]; then
grunt build && grunt test
else
grunt lint
fi
after_script:
- |
if [ "$TEST_TYPE" = unit ] && [ "$SERVER" ]; then
curl \
-F "react=@build/react.js" \
-F "react.min=@build/react.min.js" \
-F "transformer=@build/JSXTransformer.js" \
-F "react-with-addons=@build/react-with-addons.js" \
-F "react-with-addons.min=@build/react-with-addons.min.js" \
-F "commit=$TRAVIS_COMMIT" \
-F "date=`git log --format='%ct' -1`" \
-F "pull_request=$TRAVIS_PULL_REQUEST" \
-F "token=$SECRET_TOKEN" \
-F "branch=$TRAVIS_BRANCH" \
$SERVER
fi
env:
matrix:
- TEST_TYPE=unit
- TEST_TYPE=lint
global:
# SERVER
- secure: qPvsJ46XzGrdIuPA70b55xQNGF8jcK7N1LN5CCQYYocXLa fBrl fTE77QvehOPhqwJXcj6kOxI sY0KrVwV7gmq2XY2HZGWUSCxTN0SZlNIzqPA80Y7G/yOjA4PUt8LKgP 8tptyhTAY56qf hgW8BoLiKOdztYF2p 3zXOLuA=
# SECRET_TOKEN
- secure: dkpPW VnoqC/okhRdV90m36NcyBFhcwEKL3bNFExAwi0dXnFao8RoFlvnwiPlA23h2faROkMIetXlti6Aju08BgUFV f9aL6vLyU7gUent4Nd3413zf2fwDtXIWIETg6uLnOpSykGKgCAT/hY3Q2oPLqOoY0OxfgnbqwxkxljrE=
- secure: eHMg4yQWJ 5zFxNcjVwpdpcbZCQMaSByqJy0wwQ2XOOMItdCvSfO/fa mYoVND/9Orsi5kvXC9tx4sYHyth5hLrvO bghYjiayrbxYYrxso6G/aU8Pttc7s/qk3I4zadLlua1kGy2TauByxS6nt9nUDe0FDaJKA9k1QXVlpq5Ac=
- secure: v65jUPPNBvJg1xhj4cY7wMKinCESUseHsW1d2gp68SluFHHyjWZOvXYXZdABqB/1uNmQxjbUkwkdSNAOn5k7ppjRcRnlAH2uu1xDqXrGp6cW4MfNPchrAe FcUMtse/3THGJj8SZ9IQWIl BHv4XASQ7FwqCR8cwlOfhsqdfch8=
matrix:
allow_failures:
- env: TEST_TYPE=lint
notifications:
irc:
use_notice: true
skip_join: true
channels:
- chat.freenode.net#reactjs