-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (34 loc) · 1.15 KB
/
.travis.yml
File metadata and controls
34 lines (34 loc) · 1.15 KB
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
sudo: required
language: python
python: '3.6'
services:
- docker
stages:
- name: deploy
if: tag =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
jobs:
include:
- stage: deploy
script:
- sed -i "s/VERSION.*=.*/VERSION = '${TRAVIS_TAG}'/g" fandogh_cli/__init__.py
deploy:
- provider: script
script: docker build -t fandoghpaas/fandogh-cli .;echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin; docker push fandoghpaas/fandogh-cli:latest
skip_cleanup: true
on:
all_branches: true
- provider: script
script: docker build -t fandoghpaas/fandogh-cli:${TRAVIS_TAG} .;echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin; docker push fandoghpaas/fandogh-cli:${TRAVIS_TAG}
skip_cleanup: true
on:
all_branches: true
- provider: pypi
user: ${PYPI_USERNAME}
password: ${PYPI_PASSWORD}
# edge:
# source: 'native-api/dpl'
# branch: 'pip_fix_upgrade_deps'
skip_cleanup: true
skip_existing: true
on:
all_branches: true