Merge pull request #65 from etienne-napoleone/travis-timeout

Update .travis.yml
This commit is contained in:
Tuna 2018-06-28 18:03:52 +07:00 committed by GitHub
commit 77966cccc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,15 @@ before_install: skip
jobs: jobs:
include: 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 - stage: Build and test
os: linux os: linux
dist: trusty dist: trusty
@ -15,7 +24,9 @@ jobs:
- sudo chmod 666 /dev/fuse - sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf - sudo chown root:$USER /etc/fuse.conf
- go run build/ci.go install - go run build/ci.go install
- while sleep 540; do echo "[ still running ]"; done &
- go run build/ci.go test -coverage - go run build/ci.go test -coverage
- kill %1
- os: linux - os: linux
dist: trusty dist: trusty
go: '1.10' go: '1.10'
@ -24,16 +35,9 @@ jobs:
- sudo chmod 666 /dev/fuse - sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf - sudo chown root:$USER /etc/fuse.conf
- go run build/ci.go install - go run build/ci.go install
- while sleep 540; do echo "[ still running ]"; done &
- go run build/ci.go test -coverage - go run build/ci.go test -coverage
- stage: Lint - kill %1
os: linux
sudo: false
dist: trusty
go: '1.10'
git:
submodules: false
script:
- go run build/ci.go lint
- stage: Build and push Docker image - stage: Build and push Docker image
services: services:
- docker - docker
@ -50,8 +54,8 @@ jobs:
script: bash docker_rebuild.sh script: bash docker_rebuild.sh
stages: stages:
- name: Build and test
- name: Lint - name: Lint
- name: Build and test
- name: Build and push Docker image - name: Build and push Docker image
if: type != pull_request AND branch = master if: type != pull_request AND branch = master
- name: Trigger rebuild of infrastructure image - name: Trigger rebuild of infrastructure image