Skip to content

Commit

Permalink
Update travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLike committed Mar 20, 2019
1 parent 10ac5a8 commit ffe39b0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
38 changes: 22 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
dist: xenial
language: go

go:
- '1.11.x'
sudo: required

env:
- HOME=/home/travis

services:
- docker

go:
- "1.11"

go_import_path: volcano.sh/volcano

install:
- go get -u golang.org/x/lint/golint

script:
- make
- make verify
- make e2e-test

jobs:
include:
- stage: Make Verify
before_script:
- go get -u golang.org/x/lint/golint
script:
- make
- make verify
- stage: E2E Tests
before_script:
# Download kubectl
- sudo apt-get update && sudo apt-get install -y apt-transport-https
- curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
- sudo apt-get update
- sudo apt-get install -y kubectl
# Download and build kind
- go get sigs.k8s.io/kind
script: make e2e-test-kind
2 changes: 1 addition & 1 deletion hack/.golint_failures
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ volcano.sh/volcano/pkg/scheduler/plugins/predicates
volcano.sh/volcano/pkg/scheduler/plugins/priority
volcano.sh/volcano/pkg/scheduler/plugins/proportion
volcano.sh/volcano/pkg/scheduler/util
volcano.sh/volcano/test/e2e
volcano.sh/volcano/test/e2e
2 changes: 1 addition & 1 deletion hack/e2e-kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ nodes:
value: my-hostname
# the three workers
- role: worker
# replicas specifes the number of nodes to create with this configuration
# replicas specifies the number of nodes to create with this configuration
replicas: 3
2 changes: 1 addition & 1 deletion hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for p in "${all_packages[@]}"; do
# and not just the ones for the current platform.
# Packages with a corresponding foo_test package will make golint fail
# with a useless error. Just ignore that, see golang/lint#68.
failedLint=$(golint "$p"/*.go 2>/dev/null)
failedLint=$(golint "$p" 2>/dev/null)
array_contains "$p" "${failing_packages[@]}" && in_failing=$? || in_failing=$?
if [[ -n "${failedLint}" ]] && [[ "${in_failing}" -ne "0" ]]; then
errors+=( "${failedLint}" )
Expand Down

0 comments on commit ffe39b0

Please sign in to comment.