-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
69 lines (59 loc) · 2.02 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
sudo: required
dist: trusty
language: go
go:
- "1.12"
python:
- "3.6"
cache:
apt: true
directories:
- ${HOME}/.helm/
- /tmp/fission-workflow-ci/bin
- ${GOPATH}/bin/
- ${GOPATH}/pkg/
env:
global:
- KUBECONFIG=${HOME}/.kube/config
- PATH=/tmp/fission-workflow-ci/bin:${PATH}
- BIN_DIR=/tmp/fission-workflow-ci/bin
- FISSION_VERSION=0.11.0
- HELM_VERSION=2.11.0
- GO111MODULE=on
services:
- docker
before_install:
- source ~/virtualenv/python3.6/bin/activate
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- sudo apt-get update
install:
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- sudo apt-get -y install coreutils google-cloud-sdk
- test/e2e/install-clients.sh
before_script:
- cd ${TRAVIS_BUILD_DIR}
- go mod download
# Build
- build/build-linux.sh
# Static code analysis
- hack/verify-gofmt.sh
- hack/verify-govet.sh
- hack/verify-misc.sh
- helm lint charts/fission-workflows
# Setup end-to-end test environment
- test/e2e/travis-setup.sh
script:
# Unit and Integration tests
- test/runtests.sh
# End-to-end tests
- NOBUILD=y test/e2e/buildtest.sh
# Use newest cli to verify workflows in example dir
- hack/verify-workflows.sh
after_script:
- test/e2e/cleanup.sh
notifications:
slack:
rooms:
secure: KNv4Ce8dkNpshPD0qskT7HQYPbz0Q1MuTyZBRt8U7XmsdwvvxF+P00tkqw7zkOpPolahgV/Ml8jo6LKBxWd3rQEkt3bzlZJZcAZaPs5RhDFoYLZPppF8Bqpq4CEGTyfWljF0Zk5xl2vo49m7erXKhJ4XITlRq0oRakZZL+gH500XTOOXHL7xXNPqtgpiJoYseLTyB5/5GJOxqfYm+JI/9o1MTMKa7xT+KMXcVzd1p5kvSjIih/Ul6MAlrNdvESqV2MEF0zkBMlJKT63f8TQ+Bm2g7DBlIyWUh+a3pXT+HZ7i/Pu8hpek88fsMMQ1b0bujjezhgQ93g1O1M8TsJak6xkPIRnbuDXn0zbn+keam4xwym1wLwazOIOBuf6j/30JBpjapR8X2aizYoZWdKUNTtx4GBG+zW7xXvsIGakczDQJ3/EW0eMUNmnt/PvdmcT+cKJrnvSw757xlEPgp3UY6LeaRYmFDtv2rsSO63LKNltQujqB9fVNGMd0tQxSkYgDPY6fAiY18xuM5Ci/kp9YzN7Kd4tDTo6c0GGJQtppmqjRayQf26MyTXhwzR7neweBFaa6SVLFENobBnLXudgAf2W0Sg24hQccYtgJ3y0nZrwXcwDba3tQ2x9XrBI7fppZ25X6X97nFs3q5YVOxIDIPPs3KjPOIYgHKaasQxNkusM=
on_success: change
on_failure: always