Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts/travis.sh and remove IFs from .travis.yml #62
- Loading branch information
Showing
2 changed files
with
13 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -z $TRAVIS_BRANCH ]]; then | ||
echo "TRAVIS_BRANCH must be set" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ $TRAVIS_BRANCH == "develop" ]]; then | ||
docker-compose -f docker-compose.travis.yml exec photoprism make all install migrate test-codecov; | ||
else | ||
docker-compose -f docker-compose.travis.yml exec photoprism make all install migrate test; | ||
fi |