forked from hashicorp/faas-nomad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 5.17 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
group: travis_latest
sudo: required
language: go
services:
- docker
go:
- "1.10"
env:
global:
- secure: Z69lHUit3l6f4mhM8A+5mrsuMW+LD00UBv9Nx2xwtqdqQOrDO9DviSKzqioDSztwz/rG+/oZ6OWasQSlZYkPDhFjtVbWaH2S/hKn86Uwd11NVNmWyEKgHt5CIUCXJ5hqUQuJb5U94c5U8Y8nIJUB4rxtcjpw88yN+0rsGTLaO/yodz/0tG7LCuHScTxmF0mfeUyvDW+y6uGXoxJaVENZE5zkAB/7nmWhUWT8bhJq68Y9uY0F4LkyR37N+m81yRDeQQ6UnCqPMAUoskqINApHKNoa0xaFQ1EOsBBFw+WOsrSzFsKPlbN2DliXFqQcLyhhoxGkoip8wT8OsVVcsI5JZVQ+afBPPya1z9e8/ngUIBL7T8xnsIW3zorPxSjRP3+qdnbMQeLVZddOeJRzZe6VTtCqDrdJBnrso3j9CYrZ/OJqCWbU/UZ0DvwkmsmWxTmxytJ+pjG0p1lV4+b/AkIYMpzX2/cqJChA7X+dYUiAHDp8MHQ4nIchbJUA9XZmcSRCaQYgyk5PnAoCUaZHihHqWmRI3iiSDBetlbP25E+lxtTnFT0pySynXpaUvWDVzFrIefNCJMiZFI+omw8mrxrfigV/QeWKKFsIqtBpfLJ8XzMJkAZGWhZcXcjGcESNkRoYIVD9HKgyuOI1bJnMyInT4mDDZwdWUJe7cqqO7Z/uZ6Q=
- secure: XSGbatvifbM6EpC4oAaiEe/Hm00+xJl4RtqcVJOUET5gLevk6OtZnu2nEguuulHelJDrb69tv+1UOv54oSnSd8Kl1ag0sqyZ6lOgF5Xw1pvpYh5LGlQ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yPyFuX+aFqo50biq3g0YVGzys7rhuGdiUhYSdKFnFEpmTvDcm/hHiSbQ9hOEW2vPpYb6NBdAk92pIiqYSkhaGZ0n0Ns5V1M7D5k+YZZ3VA0NfJ8Rg5b3EQ9mWglUBMajbtomMnCwe4Z0zQC9MsPLOGq2BfGDZ0uUAYMV30/0wSFKW46Wwn+w4a0ToxiZKrhp7ejrL/4NdLhXzb1U1pcY90T80JInRxp5NkctuYz3fjzUsihh77RE/c0k9tygXcjnFwshXrp3ruxk1ocXkZIqoawsRb6AdbiHs61PQpmUS29drZDSqkhwDLxkRFxYV115KWbRxp7YvZhL0ctCWdChdyU8ZJjfZtJpUd/kswlLLl6xj1lLosO1Y7Mv7jdJ2IK2ZtVS/UWubLWi2ZwBlXqUkJkoJtfR4+CAJGbybJGf85fxZZEAmtP9vuPZll3ekE8d7+pXz6zr5L9XEFOMdjS4=
before_install:
- sudo apt-get update
- sudo apt-get install unzip curl
- curl https://releases.hashicorp.com/nomad/0.7.1/nomad_0.7.1_linux_amd64.zip -o nomad.zip
- curl https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_linux_amd64.zip -o consul.zip
- sudo unzip -o -d /usr/local/bin ./nomad.zip
- sudo unzip -o -d /usr/local/bin ./consul.zip
- sudo chmod +x /usr/local/bin/consul
- sudo chmod +x /usr/local/bin/nomad
- make deps
- git clone -b additions https://github.com/nicholasjackson/certify-incubator.git $GOPATH/src/github.com/openfaas/certify-incubator
- docker run -d -p 5000:5000 --restart=always --name registry registry:2
- go get github.com/wadey/gocovmerge
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- echo "Build and Test"
- make test
- make build_all
- docker tag quay.io/nicholasjackson/faas-nomad:latest localhost:5000/faas-nomad:latest
- docker push localhost:5000/faas-nomad:latest
- echo "Run Functional Tests"
- source ./startNomad.sh
- nomad run nomad_job_files/faas_travis.hcl || true
- sleep 10
- nomad status faas-nomadd
- docker ps
- cd $GOPATH/src/github.com/openfaas/certify-incubator && gateway_url=$FAAS_GATEWAY go test ./tests -v
- nomad status
- nomad logs -job faas-nomadd nomadd
- nomad logs -stderr -job faas-nomadd nomadd
after_script:
- make cover
- ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT
after_success:
- cd $GOPATH/src/github.com/hashicorp/faas-nomad
- pwd
- ./travis_deploy.sh