forked from deis/workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (44 loc) · 1.16 KB
/
.travis.yml
File metadata and controls
44 lines (44 loc) · 1.16 KB
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
language: go
go:
- 1.5.1
env:
- GO15VENDOREXPERIMENT=1
branches:
only:
- master
cache:
directories:
- $HOME/.cache/pip
- $GOPATH/src/github.com/deis/workflow/vendor
- $HOME/venv
services:
- docker
- postgresql
sudo: required
addons:
postgresql: "9.3"
before_install:
- wget "https://github.com/Masterminds/glide/releases/download/0.7.2/glide-0.7.2-linux-amd64.tar.gz"
- sudo tar -vxz -C /usr/local/bin --strip=1 -f glide-0.7.2-linux-amd64.tar.gz
- go get github.com/golang/lint/golint
- wget "http://ftp.debian.org/debian/pool/main/s/shellcheck/shellcheck_0.3.7-4_amd64.deb"
- sudo dpkg -i shellcheck_0.3.7-4_amd64.deb
- sudo pip install virtualenv
- virtualenv $HOME/venv
- source $HOME/venv/bin/activate
- createdb -U postgres deis
install:
- pip install -r rootfs/requirements.txt
- pip install -r rootfs/dev_requirements.txt
- GLIDE_HOME=/home/travis/.glide make -C client bootstrap
script:
- make test
- make -C client/ test
before_deploy:
- BUILD_TAG=latest IMAGE_PREFIX=deis/ make build
deploy:
provider: script
script: _scripts/ci/deploy.sh
on:
branch: master
condition: ${TRAVIS_PULL_REQUEST} == false