diff --git a/circle.yml b/circle.yml index 68293e2..3339766 100644 --- a/circle.yml +++ b/circle.yml @@ -1,54 +1,55 @@ -# machine: -# environment: -# PATH: ~/.m2/apache-maven-3.3.3/bin:$PATH -# SHORT_SHA1: | -# $(echo $CIRCLE_SHA1 | cut -c1-4) -# post: -# - echo $SHORT_SHA1 -# - cd $CIRCLE_PROJECT_REPONAME && git describe --abbrev=0 --tags -# - echo $PREVIOUS_SHA1 -# pre: -# - case $CIRCLE_BRANCH in stupid-branch) echo "export thing=\"stuff\"" >> .circlerc;; esac; -# - echo $thing -# - sudo apt-get update; sudo apt-get install jq -# - | -# PREVIOUS_SHA1=$(curl --header "Accept:application/json" https://circleci.com/api/v1/project/ProjectFrank/circleci-test/tree/stupid-branch | jq '.[0].vcs_revision' | tr -d '\"'); echo "export PREVIOUS_SHA1=$PREVIOUS_SHA1" >> ~/.circlerc -# # - sudo sed -i '/ulimit -l unlimited/d' /etc/init.d/cassandra -# # - sudo sed -i '/ulimit -n "$FD_LIMIT"/d' /etc/init.d/cassandra -# - | -# echo "stuff -# more -# stuff" -# services: -# - cassandra -# node: -# version: 0.12.0 -machine: - node: - version: 4.1 - - test: override: - echo "no tests" + post: + - echo "post" -# deployment: -# allthethings: -# tag: /release\/.*/ -# commands: -# - echo "all the things": -# parallel: true - -dependencies: - # cache_directories: - # - ~/go1.5.linux-amd64.tar.gz - # - ~/.rvm/rubies/ruby-2.2.3 - override: - - echo "no deps" - deployment: - tomaster: - branch: stupid-branch + allthethings: + branch: /.*/ commands: - ::wait-for-deploy-lock - - sleep 120 \ No newline at end of file + - echo "deployment" + +compile: + override: + - echo stuff + +teardown: + pre: + - echo "stuff" + +notify: + webhooks: + - url: http://requestb.in/notvalid + +checkout: + post: + - pwd + +machine: + environment: + DYLD_LIBRARY_PATH: /Applications/Xcode-7.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib:$(DYLD_LIBRARY_PATH) + PATH: ~/bin:$PATH + node: + version: 4.2.6 + pre: + - | + curl -H "accept: application/json" https://circleci.com/api/v1/project/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH\?limit\=100\&circle-token\=$CIRCLE_TOKEN + # Log all commits since last commit in last successful build + - | + cd $CIRCLE_PROJECT_REPONAME && git log `echo $(curl -H "accept: application/json" https://circleci.com/api/v1/project/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH\?limit\=100\?circle-token\=$CIRCLE_TOKEN | jq '[.[] | select(.status=="success" or .status=="fixed") | .all_commit_details[-1].commit][0]') | sed -e 's/^"//' -e 's/"$//'`..HEAD | cat | tee changelog.txt + - | + if [ [ $CIRCLE_BRANCH == 'master' ] && [ `git name-rev --name-only HEAD` != 'master' ] ]; + then git branch -d `git name-rev --name-only HEAD`; + fi + post: + - npm -v +dependencies: + pre: + - git rev-parse --git-dir + - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || (git fetch --unshallow --tags; echo \"ran git fetch\")" + override: + - echo "nothing" + - sudo apt-get update; sudo apt-get install heroku-toolbelt + - heroku update \ No newline at end of file diff --git a/test.php b/test.php new file mode 100644 index 0000000..f5a052b --- /dev/null +++ b/test.php @@ -0,0 +1,28 @@ + \ No newline at end of file