mirror of https://github.com/statping/statping
parent
c16749444d
commit
61806ce3ab
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue