-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (25 loc) · 2.72 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: python
python:
- 2.7
services:
- docker
install:
- docker build -t openusm/openusm .
before_script:
- pip install requests
env:
global:
- secure: "qYUyqoHIJLQAxqtj2xBflokCqNLzQ/CPsSnl9t2gFt94tLYZJn2TeEI/BL6rxvNlaOOsXKPeCLKLH256B3aM8Px9Q6D65oVZ5QPWQiCNxq+ahIHJoVmDTMmp2aVzfQ8Ko5H65zbnBPC5xO8W1NFItNC+tV3tdqGfgwsD5/qHtYGVQqTMOLa59EBe2LijaW9CiD4SpoLo3UDRj/+qFGUK5zIxdZtKDiKRYiKOGIx3at0fBYgNfIlqiy1r3I44K9vicUOoSeLOUmhifDJd5GKK1sOiw70WAHPqcNmLrlR7CYRsZlWkeL8xVYwgiYeN2i8JaNIaDKzIQ+NM8P7jzsRMIFWAMvZxogC74qJHFXE0yYgPwriGplTijoQqnAmd3tKUgIJFlOoj0WaBwHlD9LtJLAht65WX2ap9lgiGwIVmxj1PHWdkZpO7Z7KwZ2grmyWdmpbrchljZfiQ7sfPiQuVlgxQy11+FbgKxaiXYKSZpxM1uwJNdjpI0H/Tg3k9LdmoFpkiPAlCubtw4WvxoW7xCCaDJ4t0pLJ6QsSGG3e/q1T/mx2obLkQgNmDALT/qrySYHF/a5jPD2CNWUOOH9vRXSdYMAZ9EippiJlqp9NL7jz/ctmpYCyvWAdViDOfXz32miVr4zNMkMTmzSBvcYpg7uVXzleJT1Xc+rcUGKbWYc0=" # DOCKER_EMAIL
- secure: "MA1h3GBSfncy+2V2u4nCC5nyiKl/ILVhTn02jEii3Nb42ZXGLmAOmS8qgrAoTfCQAa896FXbosUJ2gRiFSiir6GoA2kvQtm1ogqqisXHruIXfYdGfChxiRMFsnZ6G8o+juMb7uetTpDOmJZq307s0AG2RC6WEbWdi7sf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i1El3TRSFfZCtUKVq6HLU8pCApXXvY81wl6X301vfHFZTKRB5NjVzL1ym35nWOpgTu0vRyUW/uuNS+pxm2KWYfmOy/YfygEHXboCmONDKu/fY1fLdd1dzLe1UrNWw0N2mGY/9aUX4VtN/I=" $DOCKER_PASSWORD
- COMMIT=${TRAVIS_COMMIT::8}
script:
- python bios-token.py --help
after_success:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=openusm/openusm
- 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