Skip to content

Commit 86ac6a7

Browse files
committed
Adjusting env to run in Travis
1 parent 65cd2ce commit 86ac6a7

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
---
1+
language: python
2+
python:
3+
- 2.7
4+
25
sudo: required
36

47
services:
@@ -12,7 +15,6 @@ notifications:
1215
before_install:
1316
- docker info
1417
- VERSION="$TRAVIS_BRANCH" make build
15-
- docker build -t test:local ./Test
1618

1719
script:
1820
- VERSION="$TRAVIS_BRANCH" make test

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,31 +239,31 @@ test: test_chrome \
239239

240240

241241
test_chrome:
242-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeChrome
242+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeChrome
243243

244244
test_chrome_debug:
245-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeChromeDebug
245+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeChromeDebug
246246

247247
test_chrome_standalone:
248-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneChrome
248+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneChrome
249249

250250
test_chrome_standalone_debug:
251-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneChromeDebug
251+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneChromeDebug
252252

253253
test_firefox:
254-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeFirefox
254+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeFirefox
255255

256256
test_firefox_debug:
257-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeFirefoxDebug
257+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodeFirefoxDebug
258258

259259
test_firefox_standalone:
260-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneFirefox
260+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneFirefox
261261

262262
test_firefox_standalone_debug:
263-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneFirefoxDebug
263+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh StandaloneFirefoxDebug
264264

265265
test_phantomjs:
266-
VERSION=$(VERSION) MAJOR_MINOR_PATCH=$(MAJOR_MINOR_PATCH) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodePhantomJS
266+
VERSION=$(VERSION) NAMESPACE=$(NAMESPACE) ./tests/bootstrap.sh NodePhantomJS
267267

268268

269269
.PHONY: \

tests/SmokeTests/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class SmokeTests(unittest.TestCase):
99
def smoke_test_container(self, port):
10-
build_version = os.environ.get('MAJOR_MINOR_PATCH')
1110
current_attempts = 0
1211
max_attempts = 3
1312
sleep_interval = 3
@@ -26,8 +25,6 @@ def smoke_test_container(self, port):
2625

2726
self.assertTrue(status_fetched, "Container status was not fetched on port %s" % port)
2827
self.assertTrue(status_json['status'] == 0, "Wrong status value for container on port %s" % port)
29-
self.assertTrue(status_json['value']['build']['version'] == build_version,
30-
"Wrong build version in container on port %s" % port)
3128
self.assertTrue(status_json['value']['ready'], "Container is not ready on port %s" % port)
3229

3330

0 commit comments

Comments
 (0)