mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
fix travis build for PR
This commit is contained in:
parent
5fbbcfc888
commit
183e86aad6
19
.travis.yml
19
.travis.yml
@ -7,14 +7,17 @@ before_install:
|
|||||||
- sudo apt-get -y -q install ffmpeg mediainfo tesseract-ocr tesseract-ocr-fra tesseract-ocr-ita tesseract-ocr-kor tesseract-ocr-rus tesseract-ocr-ukr tesseract-ocr-spa tesseract-ocr-ara tesseract-ocr-hin tesseract-ocr-deu tesseract-ocr-pol tesseract-ocr-jpn tesseract-ocr-por tesseract-ocr-tha tesseract-ocr-jpn tesseract-ocr-chi-sim tesseract-ocr-chi-tra
|
- sudo apt-get -y -q install ffmpeg mediainfo tesseract-ocr tesseract-ocr-fra tesseract-ocr-ita tesseract-ocr-kor tesseract-ocr-rus tesseract-ocr-ukr tesseract-ocr-spa tesseract-ocr-ara tesseract-ocr-hin tesseract-ocr-deu tesseract-ocr-pol tesseract-ocr-jpn tesseract-ocr-por tesseract-ocr-tha tesseract-ocr-jpn tesseract-ocr-chi-sim tesseract-ocr-chi-tra
|
||||||
- sudo apt-get -y -q install haveged && sudo service haveged start
|
- sudo apt-get -y -q install haveged && sudo service haveged start
|
||||||
after_success:
|
after_success:
|
||||||
- mvn -Pprod -DskipTests clean install
|
- |
|
||||||
- docker login -u $DOCKER_USER -p $DOCKER_PASS
|
if [ "$TRAVIS_PULL_REQUEST" = "false" ];
|
||||||
- export REPO=sismics/docs
|
mvn -Pprod -DskipTests clean install
|
||||||
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
- docker build -f Dockerfile -t $REPO:$COMMIT .
|
export REPO=sismics/docs
|
||||||
- docker tag $REPO:$COMMIT $REPO:$TAG
|
export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
|
||||||
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
|
docker build -f Dockerfile -t $REPO:$COMMIT .
|
||||||
- docker push $REPO
|
docker tag $REPO:$COMMIT $REPO:$TAG
|
||||||
|
docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
|
||||||
|
docker push $REPO
|
||||||
|
fi
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: LRGpjWORb0qy6VuypZjTAfA8uRHlFUMTwb77cenS9PPRBxuSnctC531asS9Xg3DqC5nsRxBBprgfCKotn5S8nBSD1ceHh84NASyzLSBft3xSMbg7f/2i7MQ+pGVwLncusBU6E/drnMFwZBleo+9M8Tf96axY5zuUp90MUTpSgt0=
|
- secure: LRGpjWORb0qy6VuypZjTAfA8uRHlFUMTwb77cenS9PPRBxuSnctC531asS9Xg3DqC5nsRxBBprgfCKotn5S8nBSD1ceHh84NASyzLSBft3xSMbg7f/2i7MQ+pGVwLncusBU6E/drnMFwZBleo+9M8Tf96axY5zuUp90MUTpSgt0=
|
||||||
|
Loading…
Reference in New Issue
Block a user