Skip to content

Commit 6c18f8e

Browse files
author
wimo7083
committed
move important variables to non-global in .travis.yml
1 parent 58f2939 commit 6c18f8e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
env:
22
global:
33
- SQLALCHEMY_DATABASE_URI="sqlite:///:memory:"
4-
- IMAGE_NAME=resources-api
5-
- DEPLOY_BRANCHES="master"
64
language: python
75
sudo: required
86
dist: xenial
@@ -13,6 +11,8 @@ services:
1311

1412
env:
1513
- DOCKER_COMPOSE_VERSION=1.22.0
14+
- IMAGE_NAME=resources-api
15+
- DEPLOY_BRANCHES="master"
1616

1717
install:
1818
- pip install pipenv

bin/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -eu
4+
35
# Only process first job in matrix (TRAVIS_JOB_NUMBER ends with ".1")
46
if [[ ! $TRAVIS_JOB_NUMBER =~ \.1$ ]]; then
57
echo "Skipping deploy since it's not the first job in matrix"

0 commit comments

Comments
 (0)