forked from fission/fission-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (60 loc) · 2.08 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
70
sudo: required
dist: trusty
language: go
go:
- 1.9
python:
- 3.6
cache:
apt: true
directories:
- ${HOME}/.helm/
- ${HOME}/.glide/
- /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.7.2
- HELM_VERSION=2.8.2
- KUBECTL_VERSION=1.9.6
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
# Needed for some integration tests
- glide -h >/dev/null 2>&1 || go get github.com/Masterminds/glide
before_script:
- cd ${TRAVIS_BUILD_DIR}
# Static code analysis
- hack/verify-gofmt.sh
- hack/verify-govet.sh
# Build
- glide install -v
- build/build-linux.sh
- test/e2e/travis-setup.sh
# Checks using the built artifacts
script:
# Unit and Integration tests
- test/runtests.sh
# End-to-end tests
- NOBUILD=y test/e2e/buildtest.sh
# Use newest wfcli 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