-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (53 loc) · 3.52 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: python
python:
- '3.6'
env:
- TOXENV=flake8
- TOXENV=build
addons:
apt:
packages:
- docker-ce=18.03.1~ce-0~ubuntu
install:
- docker --version
- pip install tox
script: tox
services:
- docker
stages:
- test
- name: pypi
if: tag IS present
- name: docker
if: tag IS present
jobs:
include:
- stage: pypi
script: echo "Deploying to PyPi"
deploy:
provider: pypi
distributions: bdist_wheel
user: rmb938
password:
secure: n2LVNQ0TYNx/u5Ygh4ZgJ2reLAjLrDKBD1VhPAnlsnlaMSEBNnjZmC8WvzrMhHZvzT855vgNGp1LWBqKaE6uGBu/YOZyD7OkzWQbokmBU20k63erHDK8/mImdubAtzy33PsDyklbcHJXdZyaUwJmFZFlFxE97UZLbgijkyoC+CZ6i5DquJ4UDuR0PT8kw9oiBBlC9CBQV3D7W8m+FnYGenk2HViwiXqR9L5b2IRuIb5mkd/y7dJFUYmzFzLjafwSaWYUixVMO6Ml3hPAcimxGICdzOLH3X9Dxzt1S0zaCqsrK5a2HoaXKYh6ToTz5mGZsEsOVj8OJ/czR33NsVnrS4HoeGAauM4A5pkv8XgYmzgq2sQhNFZXHK7ePvhRPhP7gEg51cHJkGD0PpiHX+ls3+qy9NDnD72j9NAepLO7mRsBExxPngms9EenFLCAtVmHEMw4eem7DYqGfowKL5y3gWqefqnOxLK0rfst7JcQ2wquyo8D3vGJ6TaNENsykuARfMGURujdxp87U4T+0IU9KBxGQ+Xv8h4zr1j9IBD9JfrkaraPlGIBlhU2a4LWcrmECRgEOTamAIWIhWeA1AUxezHBt3hJv//hJ9l3pJOai6A62Gxt84uNKpRYEhS/Q7BFw3o/j+E+c7xYRFG91kXMvh0A4smaH1o3gbpYE14ZVzM=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FFkLawzbPD5VeQECPvKEzgTH+BQNdrinZi7x51h1zrAxtBKw+aCqjHKN1yviRcXwnVj9I9803jbroBpyUWjNADvpLQturHyXyE8w9uC82AduMQPkB7Y+ZrVgSh3M/rq/jnkoHAm2gdB76oqvTCCGyb7ZTOaIEj3yedIJb+Us0577D3lFNnaSM1aFWt4JVfLWjLRmHzvGd2NnbbcAFo+VOIhclpH6vThb5xk9c373l0MWw6kDlnk79JrI2riaTNe+t0YyeN7gIIiz5F2EX+lG+fRP4kQ389URF3o/y52roNZh64YEyP6l7hH/kJjk=
script:
- tox -e build
- docker build -f docker/counter/Dockerfile -t sandwichcloud/deli-counter:latest .
- docker build -f docker/manager/Dockerfile -t sandwichcloud/deli-manager:latest .
- docker build -f docker/menu/Dockerfile -t sandwichcloud/deli-menu:latest .
- docker tag sandwichcloud/deli-counter:latest "sandwichcloud/deli-counter:$TRAVIS_TAG"
- docker tag sandwichcloud/deli-manager:latest "sandwichcloud/deli-manager:$TRAVIS_TAG"
- docker tag sandwichcloud/deli-menu:latest "sandwichcloud/deli-menu:$TRAVIS_TAG"
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker push "sandwichcloud/deli-counter:$TRAVIS_TAG"
- docker push sandwichcloud/deli-counter:latest
- docker push "sandwichcloud/deli-manager:$TRAVIS_TAG"
- docker push sandwichcloud/deli-manager:latest
- docker push "sandwichcloud/deli-menu:$TRAVIS_TAG"
- docker push sandwichcloud/deli-menu:latest