Update travis config file to rebase on master before test running

This commit is contained in:
Xiaofeng Wang 2020-11-10 22:11:13 +08:00 committed by Sanne Raymaekers
parent abb3bbc868
commit bd99a90faa

View file

@ -7,6 +7,14 @@ node_js:
cache:
directories:
- node_modules
before_install:
- |
git config --global user.email "travis@image-builder.frontend"
git config --global user.name "Travis CI"
git remote add image-builder-frontend https://github.com/${TRAVIS_REPO_SLUG}.git
git fetch image-builder-frontend $TRAVIS_BRANCH
git log -1 --pretty=format:%H image-builder-frontend/${TRAVIS_BRANCH}
git rebase image-builder-frontend/${TRAVIS_BRANCH}
install:
- npm install
script: