allow PR testing - test fix - cypress fix

pull/50/head v0.47
Hunter Long 2018-08-20 00:27:57 -07:00
parent c16749444d
commit 61806ce3ab
3 changed files with 6 additions and 4 deletions

View File

@ -56,7 +56,7 @@ before_script:
script:
- make test-all
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make coverage; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then make coverage; fi
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make travis-build; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then make travis-build; fi

View File

@ -9,7 +9,7 @@ RUN npm install node-sass
ENV SASS=node-sass
RUN npm install
ADD ./statup /usr/local/bin/statup
ADD ./statup-linux-amd64 /usr/local/bin/statup
RUN statup version
RUN npm run test-docker

View File

@ -142,7 +142,9 @@ func TestServiceChartHandler(t *testing.T) {
assert.Equal(t, 200, rr.Code)
t.Log(body)
assert.Contains(t, body, "var ctx_1")
assert.Contains(t, body, "var ctx_2")
assert.Contains(t, body, "var ctx_3")
assert.Contains(t, body, "var ctx_4")
assert.Contains(t, body, "var ctx_5")
}
func TestDashboardHandler(t *testing.T) {