From 6c814dca04eb219081a2cdab47f74803c3380e2e Mon Sep 17 00:00:00 2001 From: etienne-napoleone Date: Wed, 27 Jun 2018 18:18:52 +0700 Subject: [PATCH 1/2] Update .travis.yml Change stage order and fix timeout on coverage test --- .travis.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 07d66b9fa1..cc223af95d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,15 @@ before_install: skip jobs: include: + - stage: Lint + os: linux + sudo: false + dist: trusty + go: '1.10' + git: + submodules: false + script: + - go run build/ci.go lint - stage: Build and test os: linux dist: trusty @@ -15,7 +24,7 @@ jobs: - sudo chmod 666 /dev/fuse - sudo chown root:$USER /etc/fuse.conf - go run build/ci.go install - - go run build/ci.go test -coverage + - travis_wait go run build/ci.go test -coverage - os: linux dist: trusty go: '1.10' @@ -24,16 +33,7 @@ jobs: - sudo chmod 666 /dev/fuse - sudo chown root:$USER /etc/fuse.conf - go run build/ci.go install - - go run build/ci.go test -coverage - - stage: Lint - os: linux - sudo: false - dist: trusty - go: '1.10' - git: - submodules: false - script: - - go run build/ci.go lint + - travis_wait go run build/ci.go test -coverage - stage: Build and push Docker image services: - docker @@ -50,8 +50,8 @@ jobs: script: bash docker_rebuild.sh stages: - - name: Build and test - name: Lint + - name: Build and test - name: Build and push Docker image if: type != pull_request AND branch = master - name: Trigger rebuild of infrastructure image From 49a69c52e11bdc7e0cfe15714f187af4ded26d05 Mon Sep 17 00:00:00 2001 From: etienne-napoleone Date: Wed, 27 Jun 2018 19:08:17 +0700 Subject: [PATCH 2/2] Change to second methode --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cc223af95d..a9e0f9fda8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,9 @@ jobs: - sudo chmod 666 /dev/fuse - sudo chown root:$USER /etc/fuse.conf - go run build/ci.go install - - travis_wait go run build/ci.go test -coverage + - while sleep 540; do echo "[ still running ]"; done & + - go run build/ci.go test -coverage + - kill %1 - os: linux dist: trusty go: '1.10' @@ -33,7 +35,9 @@ jobs: - sudo chmod 666 /dev/fuse - sudo chown root:$USER /etc/fuse.conf - go run build/ci.go install - - travis_wait go run build/ci.go test -coverage + - while sleep 540; do echo "[ still running ]"; done & + - go run build/ci.go test -coverage + - kill %1 - stage: Build and push Docker image services: - docker