2015-03-10 19:11:28 -07:00
|
|
|
language: objective-c
|
2015-03-17 21:12:13 -07:00
|
|
|
before_install:
|
|
|
|
- brew update
|
|
|
|
- brew reinstall xctool
|
2015-03-10 19:11:28 -07:00
|
|
|
install:
|
2015-03-20 14:52:23 -07:00
|
|
|
- brew install watchman
|
2015-03-10 19:11:28 -07:00
|
|
|
- npm install
|
2015-03-20 14:34:34 -07:00
|
|
|
before_script:
|
2015-03-10 19:11:28 -07:00
|
|
|
- npm test
|
2015-03-20 14:34:34 -07:00
|
|
|
- (npm start > packager.log 2>&1 &) && echo $! > packager.pid
|
|
|
|
|
|
|
|
after_script:
|
2015-03-20 15:05:54 -07:00
|
|
|
- pkill -9 -F packager.pid
|
2015-03-20 14:34:34 -07:00
|
|
|
- cat packager.log
|
|
|
|
- rm packager.log
|
|
|
|
- rm packager.pid
|
|
|
|
|
2015-03-17 21:12:13 -07:00
|
|
|
# Automatically publish the website
|
2015-03-27 19:35:48 -07:00
|
|
|
after_success:
|
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
|
|
|
|
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
|
|
|
|
cd website
|
|
|
|
npm install
|
|
|
|
./setup.sh
|
|
|
|
./publish.sh
|
|
|
|
fi
|
2015-03-20 14:34:34 -07:00
|
|
|
|
|
|
|
env:
|
2015-03-27 19:35:48 -07:00
|
|
|
global:
|
|
|
|
- secure: "HlmG8M2DmBUSBh6KH1yVIe/8gR4iibg4WfcHq1x/xYQxGbvleq7NOo04V6eFHnl9cvZCu+PKH0841WLnGR7c4BBf47GVu/o16nXzggPumHKy++lDzxFPlJ1faMDfjg/5vjbAxRUe7D3y98hQSeGHH4tedc8LvTaFLVu7iiGqvjU="
|
2015-03-20 14:34:34 -07:00
|
|
|
|
2015-03-15 18:46:48 -07:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|