forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.56 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
branches:
only:
- master
language: python
cache:
directories:
- node_modules
- .cache/pip
python:
- "2.7"
env:
- GAE_ZIP=google_appengine_1.9.40.zip GAE_ROOT=${HOME}/google_appengine
cache: pip
services:
- docker
sudo: required
before_install:
- docker pull gcr.io/google_containers/kubekins-job-builder:5
- docker pull golang:1.7.1
install:
# Create and move build under the go path
- mkdir -p $HOME/gopath/src/k8s.io
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/test-infra
- cd $HOME/gopath/src/k8s.io/test-infra
# Based on https://github.com/travis-ci/travis-ci/issues/738#issuecomment-11179888
- wget -nv https://storage.googleapis.com/appengine-sdks/featured/${GAE_ZIP}
- unzip -q ${GAE_ZIP} -d ${HOME}
- pip install -r gubernator/test_requirements.txt
- pip install -r jenkins/test-history/requirements.txt
- npm install mocha
script:
- ./verify/verify-boilerplate.py
- python -m unittest discover -s jenkins/test-history -p "*_test.py"
- pylint jenkins/bootstrap.py # TODO(fejta): all python files
- pylint queue-health/graph/graph.py # TODO(fejta): all python files
- ./jenkins/bootstrap_test.py
- ./jenkins/diff-job-config-patch.sh
- ./jenkins/diff-e2e-runner.sh
- make -C gcsweb test
- cd gubernator
- ./test.sh --nologcapture
- ./lint.sh
- ../node_modules/.bin/mocha static/build_test.js
- cd ..
- gofmt -l .
- go test k8s.io/test-infra/testgrid/config/...
- chmod +x testgrid/jenkins_verify/verify.sh
- ./testgrid/jenkins_verify/verify.sh