Skip to content

Commit

Permalink
Add travis build job
Browse files Browse the repository at this point in the history
  • Loading branch information
mlespiau committed Dec 10, 2016
1 parent 93c3ad7 commit e25c186
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
env:
global:
- secure: "Lu0LkbmyCFTAFrhcrRltcDn5kwKIynjclTxdta3Wj5lPvntSC8tdDaUBl0u3ZxHgdQIuS4YqB4aPVO9zkdvScnwPcLILOyhVT7YH8hnasVddA51ctDaNQrHSK7jeCPDaeKnvpXMlnKdVqFbcS03/vU5y072M5kb1rXO/UPYu3P+N68GhZJKuTcuQgat3rJ5IiegphFL7jmzDapWtT/t8ibnVMj8wmOr97XuoKsOR/6cpnxI1uABfATCYBIkxyepUlTdKn85lj2mLRtHRy0rsh23Kl7rhUL3WIeFkC5Ja9V3I5wIXn6VgMxIfCwrIzUoxgbd8wJxfbiK/4wvj0Oul5L0p1vKkt5waa2Wl+HBsL/1hA1xn/dzH0ON/5QFhC/tDSA3t+jrgNYOHSChcE/yYz9g6w9uBwj/TVgqRUJtMfmc1I8T9SVQn9wz8qb5C96siHRjYTU3fvCZ+2+yAhHbLZGZSgr/jVw0jeBbCPY8cZMzgS4EGoJC/qnKCbZ7sdcQd85+qHINPBn7OvWmZZSuO08nzta0Lp6tfyZ54/fx2SgFTsjU4w67URNabYzEFLfv/MQLp7fqfILLuuac83/1ZMW24oyLbGroDutbWwdh4VARrz+roML2qHnpqcQ46e2jYRRY0n8rFoAQN7pGIVDuqXC+4ijl0C0CNdnN1u44ibQk=" # DOCKER_EMAIL
- secure: "nKqpeeR0z37aWROoVyQL94qLuiBwB0X/qykGMPTdcZbDeeqdtlD0QYtPExKVfVC5f18V/PKOA5gQj7pO2Qfpr0BivxUyxqfWJ5hThrFW2s8C20z5BwTbXoLWvU5nebfelurZJQlWw41GAoCQSO+W+9IK0gu2pD5ETpMz7/lLCHUo6f2vGG7RpqI0jeZ8/f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EpRspZn3SzBfmTCvwbqhKhByb27Zw4/ga6stV3lmtbtp23IkXZbbftBPiVYXcWLcbvGRldwMaAMSNvEt03JdqbVZWS8sBxuvD08GyCvSGhnQE+8lS6JhD3MUCaRkfc=" # DOCKER_PASS
- COMMIT=${TRAVIS_COMMIT::8}

after_success:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=opencats/php
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO

0 comments on commit e25c186

Please sign in to comment.