-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ajey] removed un-necessary sub commands
- Loading branch information
Showing
1 changed file
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|