Skip to content

Commit 812da53

Browse files
authored
Test multijobs (palicao#13)
Add multiple jobs to travis config so that we run tests with both redislabs/redistimeseries:1.2.2 and redislabs/redistimeseries:edge
1 parent c3ece39 commit 812da53

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,26 @@ php:
66
- 7.4
77

88
env:
9-
- REDIS_HOST=localhost
9+
- REDIS_HOST=localhost REDIS_TIMESERIES_VERSION=1.2.2
10+
- REDIS_HOST=localhost REDIS_TIMESERIES_VERSION=edge
11+
12+
jobs:
13+
allow_failures:
14+
- env: REDIS_HOST=localhost REDIS_TIMESERIES_VERSION=edge
1015

1116
services:
1217
- docker
1318

1419
before_install:
15-
- docker pull redislabs/redistimeseries:1.2.1
16-
- docker run -d -p 127.0.0.1:6379:6379 --name redis redislabs/redistimeseries:1.2.1
20+
- docker pull redislabs/redistimeseries:$REDIS_TIMESERIES_VERSION
21+
- docker run -d -p 127.0.0.1:6379:6379 --name redis redislabs/redistimeseries:$REDIS_TIMESERIES_VERSION
1722
- yes | pecl install igbinary redis || true
1823
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
1924

2025
before_script:
2126
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
2227
- chmod +x ./cc-test-reporter
23-
- if [ $(phpenv version-name) = "7.4" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter before-build; fi
28+
- if [ $(phpenv version-name) = "7.4" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$REDIS_TIMESERIES_VERSION" == "1.2.2" ]; then ./cc-test-reporter before-build; fi
2429

2530
script:
2631
- composer install
@@ -30,4 +35,4 @@ script:
3035
after_script:
3136
- docker stop redis
3237
- docker rm redis
33-
- if [ $(phpenv version-name) = "7.4" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --coverage-input-type clover --id $CC_TEST_REPORTER_ID --exit-code $TRAVIS_TEST_RESULT; fi
38+
- if [ $(phpenv version-name) = "7.4" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$REDIS_TIMESERIES_VERSION" == "1.2.2" ]; then ./cc-test-reporter after-build --coverage-input-type clover --id $CC_TEST_REPORTER_ID --exit-code $TRAVIS_TEST_RESULT; fi

0 commit comments

Comments
 (0)