Add scripts/travis.sh and remove IFs from .travis.yml #62
This commit is contained in:
parent
ef4f9c3f7b
commit
aa831d3a2f
2 changed files with 13 additions and 2 deletions
|
@ -14,8 +14,7 @@ before_script:
|
|||
- docker-compose -f docker-compose.travis.yml up -d --build
|
||||
|
||||
script:
|
||||
- if [ "$TRAVIS_BRANCH" == "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make all install migrate test-codecov; fi
|
||||
- if [ "$TRAVIS_BRANCH" != "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make all install migrate test; fi
|
||||
- scripts/travis.sh
|
||||
|
||||
after_script:
|
||||
- docker-compose -f docker-compose.travis.yml down
|
||||
|
|
12
scripts/travis.sh
Executable file
12
scripts/travis.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue