Skip to content

Commit 753c59f

Browse files
committed
Do not run the install step on build and deploy stages
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 2cfb120 commit 753c59f

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.travis.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
addons:
2-
apt:
3-
packages:
4-
- xmlsec1
51

62
services:
73
- docker
84
- mongodb
95

106
language: python
7+
8+
before_install:
9+
- sudo apt-get install -y xmlsec1
10+
1111
install:
1212
- pip install tox
1313
- pip install tox-travis
@@ -63,6 +63,8 @@ jobs:
6363
EOF
6464
6565
- stage: Build docker image by commit and deploy on DockerHub
66+
before_install: skip
67+
install: skip
6668
script:
6769
- set -e
6870
- docker build -f Dockerfile -t "$DOCKER_TAG_COMMIT" .
@@ -71,6 +73,8 @@ jobs:
7173

7274
- stage: Tag docker image with branch name
7375
if: type = push AND branch IS present
76+
before_install: skip
77+
install: skip
7478
script:
7579
- set -e
7680
- docker pull "$DOCKER_TAG_COMMIT"
@@ -80,6 +84,8 @@ jobs:
8084

8185
- stage: Tag docker image with pull-request branch name
8286
if: type = pull_request AND head_branch IS present
87+
before_install: skip
88+
install: skip
8389
script:
8490
- set -e
8591
- test "$TRAVIS_SECURE_ENV_VARS" = "false" && exit 0
@@ -90,6 +96,8 @@ jobs:
9096

9197
- stage: Tag docker image with pull-request number
9298
if: type = pull_request
99+
before_install: skip
100+
install: skip
93101
script:
94102
- set -e
95103
- test "$TRAVIS_SECURE_ENV_VARS" = "false" && exit 0
@@ -100,6 +108,8 @@ jobs:
100108

101109
- stage: Tag docker image with git-tag
102110
if: type = push AND tag IS present
111+
before_install: skip
112+
install: skip
103113
script:
104114
- set -e
105115
- docker pull "$DOCKER_TAG_COMMIT"
@@ -109,6 +119,8 @@ jobs:
109119

110120
- stage: Tag docker image as latest
111121
if: type = push AND branch = master
122+
before_install: skip
123+
install: skip
112124
script:
113125
- set -e
114126
- docker pull "$DOCKER_TAG_COMMIT"
@@ -118,6 +130,8 @@ jobs:
118130

119131
- stage: Deploy new release on GitHub
120132
if: type = push AND branch = master AND tag IS present
133+
before_install: skip
134+
install: skip
121135
script: skip
122136
deploy:
123137
- provider: releases
@@ -129,6 +143,8 @@ jobs:
129143

130144
- stage: Deploy new release on PyPI
131145
if: type = push AND branch = master AND tag IS present
146+
before_install: skip
147+
install: skip
132148
script: skip
133149
deploy:
134150
- provider: pypi

0 commit comments

Comments
 (0)