Skip to content

Commit 74aa0f6

Browse files
Fixing TravisCI test-deploy logic (#119)
* Fixing Travis test deploy logic * FIxed reddis lib retrieval by moving it from branch olfs:tomcat-11 to branch olfs:el9 Co-authored-by: Hannah Robertson <hannahilea@users.noreply.github.com>
1 parent bc799ff commit 74aa0f6

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.travis.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ services:
1818
branches:
1919
only:
2020
- master
21-
- el9
21+
- main
22+
- /^(.*-test-deploy)$/
2223

2324
notifications:
2425
email:
@@ -55,7 +56,7 @@ before_install:
5556
- pip3 install awscli
5657
- echo "# travis.before_install() - TRAVIS_PULL_REQUEST is $TRAVIS_PULL_REQUEST"
5758
- echo "# travis.before_install() - TRAVIS_BRANCH is $TRAVIS_BRANCH"
58-
- if test "$TRAVIS_PULL_REQUEST" = "false" -o "$TRAVIS_BRANCH" = "el9" ; then export DEPLOY_ME="true"; else export DEPLOY_ME="false"; fi
59+
- if [[ "$TRAVIS_PULL_REQUEST" = "false" || "$TRAVIS_BRANCH" =~ ^(.*-test-deploy)$ ]] ; then export DEPLOY_ME="true"; else export DEPLOY_ME="false"; fi
5960
- echo "# travis.before_install() - DEPLOY_ME is $DEPLOY_ME"
6061

6162

@@ -66,11 +67,11 @@ install:
6667

6768
stages:
6869
- name: BUILD_AND_TEST
69-
if: branch = master OR branch = el9
70+
if: branch = master OR branch = main OR branch =~ ^(.*-test-deploy)$
7071
- name: BUILD
71-
if: branch = master OR branch = el9
72+
if: branch = master OR branch = main OR branch =~ ^(.*-test-deploy)$
7273
- name: TEST_DEPLOYED_IMAGE
73-
if: ((branch = master) and (type != pull_request)) or (branch = el9)
74+
if: ((branch = master or branch = main) and (type != pull_request)) or (branch =~ ^(.*-test-deploy)$)
7475
- name: disabled
7576
if: branch = disabled
7677

@@ -249,13 +250,5 @@ deploy:
249250
- provider: script
250251
script: bash "$TRAVIS_BUILD_DIR/travis/deploy_to_docker_hub.sh"
251252
on:
252-
branch: master
253-
condition: $DEPLOY_ME = "true"
254-
255-
- provider: script
256-
script: bash "$TRAVIS_BUILD_DIR/travis/deploy_to_docker_hub.sh"
257-
on:
258-
branch: el9
259-
condition: $DEPLOY_ME = "true"
260-
261-
253+
all_branches: true
254+
condition: ( "$DEPLOY_ME" = "true" )

el9-builds/ngap/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ RUN set -e \
426426
&& git clone https://github.com/OPENDAP/olfs \
427427
#&& git clone --depth 1 https://github.com/OPENDAP/olfs \
428428
&& cd olfs \
429-
&& git checkout tomcat-11 \
429+
&& git checkout el9 \
430430
&& cd .. \
431431
&& echo "$HR2" >&2 \
432432
&& echo "Copying elasticache client" >&2 \

0 commit comments

Comments
 (0)