Skip to content

Commit b6a8993

Browse files
committed
Git clone unshallow repo
2 parents cc93b47 + 06916a1 commit b6a8993

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,22 @@ cache:
88
- node_modules
99
git:
1010
depth: 3
11+
install:
12+
- git clone $GIT_CLONE_REMOTE
13+
- cd $REPO_NAME
14+
- git checkout $TRAVIS_BRANCH
15+
- npm i
1116
script: npm run travis-script
1217
after_script:
1318
- npm report-coverage
1419
before_script:
1520
- npm install -g gulp-cli
16-
- git fetch --all --unshallow
1721
deploy:
1822
app: $APP_NAME
1923
provider: $PROVIDER
24+
on:
25+
repo: surabhi226005/express-mongoose-es6-rest-api
26+
branch: master
2027
api_key:
2128
secure: $TRAVIS_SECURE_API_KEY
2229
after_success:

travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git config --global user.email $GIT_USER_EMAIL
66
gem install $PROVIDER
77

88
# Add your Heroku git repo:
9-
git remote rm $PROVIDER ;
9+
git remote rm $PROVIDER ;
1010

1111
git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
1212

0 commit comments

Comments
 (0)