Skip to content

Commit

Permalink
[ajey] removed un-necessary sub commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeygore committed Apr 12, 2018
1 parent 2573a00 commit be2f419
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: required
language: ruby
rvm:
- 2.4.4
- ruby-2.4.4
- jruby-9.1.7.0
services:
- redis-server
Expand All @@ -27,27 +27,29 @@ env:
- COMMIT=${TRAVIS_COMMIT::8}
- DOCKER_COMPOSE_VERSION=1.11.2
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- bundle exec rake app:setup
- bundle exec rake app:rspec
- bundle exec rake assets:precompile RAILS_ENV=production
- bundle install --path .local
- bundle install --deployment
- bundle exec rake db:drop db:create db:migrate
- bundle exec rake spec DB_NAME=gate_test
- bundle exec rake assets:precompile RAILS_ENV=production
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=sankalpsingh/gate
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=sankalpsingh/gate
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "ajeygore"
- git config --local user.email "[email protected]"
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
# Set up git user name and tag this commit
- git config --local user.name "ajeygore"
- git config --local user.email "[email protected]"
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
skip_cleanup: true
Expand Down

0 comments on commit be2f419

Please sign in to comment.