Skip to content

Commit e98ec61

Browse files
shawncatznotzippy
authored andcommitted
add 1.7 and 1.8 to testing (revel#1143)
* add 1.7 and 1.8 to tests * remove 1.4, just bumping
1 parent c0220f9 commit e98ec61

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
language: go
22

33
go:
4-
- 1.4
54
- 1.5
65
- 1.6
6+
- 1.7
7+
- 1.8
78
- tip
89

910
os:
@@ -24,9 +25,14 @@ services:
2425

2526
before_install:
2627
# TRAVIS_OS_NAME - linux and osx
27-
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install memcached redis; fi'
28-
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup /usr/local/opt/memcached/bin/memcached & fi'
29-
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup redis-server /usr/local/etc/redis.conf & fi'
28+
- echo $TRAVIS_OS_NAME
29+
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install memcached redis && brew services start redis && brew services start memcached; fi'
30+
# - 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start redis-server && brew services start memcached; fi'
31+
#- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup /usr/local/opt/memcached/bin/memcached & fi'
32+
#- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup redis-server /usr/local/etc/redis.conf & fi'
33+
# - 'if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo start redis-server & fi'
34+
- redis-server --daemonize yes
35+
- redis-cli info
3036

3137
install:
3238
# Setting environments variables

testing/testsuite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func TestGetCustom(t *testing.T) {
7676

7777
testSuite.AssertOk()
7878
testSuite.AssertContentType("application/json")
79-
testSuite.AssertHeader("Server", "nginx")
79+
testSuite.AssertHeader("Server", "gunicorn/19.7.0")
8080
testSuite.AssertContains("httpbin.org")
8181
testSuite.AssertContainsRegex("gzip|deflate")
8282
}

0 commit comments

Comments
 (0)