Skip to content

Commit

Permalink
Add condition to provide different git commands for master & pull reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
nethsix committed Aug 1, 2016
1 parent caca670 commit d5d0ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circle.yml
Expand Up @@ -4,4 +4,4 @@ machine:

test:
override:
- docker run -it nethsix/ruby-tensorflow-ubuntu:0.0.1.a /bin/bash -l -c "mkdir -p /repos/ruby-tensorflow/circle-ci && cd /repos/ruby-tensorflow/circle-ci && git clone $CIRCLE_REPOSITORY_URL && cd /repos/ruby-tensorflow/circle-ci/$CIRCLE_PROJECT_REPONAME && git fetch origin $CIRCLE_BRANCH/head && git checkout FETCH_HEAD && bundle install && cd /repos/ruby-tensorflow/circle-ci/$CIRCLE_PROJECT_REPONAME/ext/sciruby/tensorflow_c && ruby extconf.rb && make && make install && cd /repos/ruby-tensorflow/circle-ci/$CIRCLE_PROJECT_REPONAME && bundle exec rake install && bundle exec rspec"
- docker run -it nethsix/ruby-tensorflow-ubuntu:0.0.1.a /bin/bash -l -c "mkdir -p /repos/ruby-tensorflow/circle-ci && cd /repos/ruby-tensorflow/circle-ci && git clone $CIRCLE_REPOSITORY_URL && cd /repos/ruby-tensorflow/circle-ci/$CIRCLE_PROJECT_REPONAME && (([[ $CIRCLE_BRANCH == 'master' ]] && git checkout $CIRCLE_BRANCH && git pull) || (git fetch origin $CIRCLE_BRANCH/head && git checkout FETCH_HEAD)) && bundle install && cd /repos/ruby-tensorflow/circle-ci/$CIRCLE_PROJECT_REPONAME/ext/sciruby/tensorflow_c && ruby extconf.rb && make && make install && cd /repos/ruby-tensorflow/circle-ci/$CIRCLE_PROJECT_REPONAME && bundle exec rake install && bundle exec rspec"

0 comments on commit d5d0ab5

Please sign in to comment.