Skip to content

Instantly share code, notes, and snippets.

@huanggm
Created January 12, 2016 07:52
Show Gist options
  • Save huanggm/c8cd7b7205cd96e31c32 to your computer and use it in GitHub Desktop.
Save huanggm/c8cd7b7205cd96e31c32 to your computer and use it in GitHub Desktop.
自动构建的脚本,主要是调用fis3 release进行输出
echo 'start building!'
echo $PATH
export PATH=$PATH:/usr/local/bin
echo $PATH
pwd
cd use-php
/usr/local/bin/npm install
/usr/local/bin/fis3 release -d ../../builds/$BUILD_NUMBER/use-php
tar -czf ../../builds/$BUILD_NUMBER/$BUILD_TAG.tar.gz -C ../../builds/$BUILD_NUMBER/use-php .
echo 'build success!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment