-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 4.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
# Note: right now we don't use go-specific features of travis.
# Later we might automate gofmt etc. (or do it inside the docker container...?)
language: go
install: true
before_script:
- sudo apt-get install -qy socat
- "printf -- '-----BEGIN CERTIFICATE-----\nMIIC+TCCAeGgAwIBAgIJAJexZ2eYgytbMA0GCSqGSIb3DQEBBQUAMBIxEDAOBgNV\nBAMMB3Nub3JrZWwwIBcNMTMxMTI3MTkzODM0WhgPMjExMzExMjgxOTM4MzRaMBIx\nEDAOBgNVBAMMB3Nub3JrZWwwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\nAQDIlXBfbz4wYEMsqkhb7Gy3K/5Yrf4prI/8iQkr5jxEmA6O7FmfnF1c87/dRSfj\nksCQ1pn01aGWnbIgAfcKDNJIxPuPpXveyqSYq+QIHto5OMLuXVkPuxBgJHM3tyl7\nZZ2nYfzM3WtVeCO44gr75f5qcbwEoUc7t+8mDJ2nS5MTrpk8y5Wc3ax2KoTMEPIA\n0yhvv1LatZvBYpY9bZ6K2ZSM8xN6C8iW7JEcAnXdqM/GsvaXPtR6X5JZW2lvTmUJ\nfWcgTcLho4J7Dnv51H+rxT6vIhTDL57rfj5PivokOFvjeqY/Xz2a9+OlyZA5Wl/g\nNvqpZutKHL5D8u3Rqnvzt01tAgMBAAGjUDBOMB0GA1UdDgQWBBQVf8DP3lBHZwqB\nTU9mEqAgBK83xzAfBgNVHSMEGDAWgBQVf8DP3lBHZwqBTU9mEqAgBK83xzAMBgNV\nHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQCgOA8ABd+bYi4b2li6KNynPj8A\nJ7Cs3SiDbwS73f2l2EnZIqPUes+GHmFJ9vCGtvXJMrZKbDR4rCS7ecY1qGsSRNvI\nY2DaNl+SEVW1+KJ/2RFPT0k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a\n2oBDc1HhX1C4Uyz32Kln3ZjBcRNjK0bvU6tENfhWz0q9OdAKDF6gprUNKAoprDG2\naQIEOjFtzXULmyaxhMdm1PsZJjNKjCJ/iPJi4w+daQi820/HQ22ryXukeLf83gmv\nu5Qz88n3A98R70UKOjIL+zqPS39nAg7+ZfwnqlZDUiHK7hExLNW5xtosaA4wFABP\nXyI6CykvXTSvVJPglt/PIT2SrzDxqZvpmCvVtrD0BYL1WRjDKKeUXAMFOgOsnryi\n54AbyrQq3T36+KrHuG1yGGqQzPYuaXlOomqvSHk92/m6rN7G2bh24MURm+AwGYqv\nO9Rh+EKC+QD2TAsZwyCQqZh7V6bSnlt0b5ofJC7gfjQcBhU/lGkcLpkwdP9wlzcE\nf8ploR3K/bSAKVpiyPscovkauaL1dgorov+xrpqPalYM67jFfeJwI8VgI5p6rgjF\nX1rvPkndlq2an66R1ro1h+0FWSvBjqKlrO2K7FwvMcSTD1Lb76uXesSd0AK1Lv07\nWsFi3cmPLYIH3FqLjrqGqd//t1oLk7a4fJ9fiyyNGuTZdJKodNtYN9bQXbIEeVAn\n/gqrQAHrfxR+lCpmMDytjL2kvR7C5hVdQueW1DBcXramTfGXUID2MUhRtyh5R0YR\nMjRct3a//dA25zm1pEqMcJ37G0DMOec47MMNXxrtRQ4p9FjAy2SxpvLmZQzAdbD/\nsfvw+6VgBiGIoUc6uOjDNW2y17RqRGQT6mFRgJ75GHlNzydYRLfUyeRNWchie2wj\n9Vt1v1ATMKkPFvVAJuiHjAN+GScnRDjvJ6DDmBcVmAeJ/jwFWDyNEkYh9jlhZeKe\nM9uCn/w1dyZmqIQDW6+26qZKDqeReOeuhZ71jqu4TQFPQHunx/mtK3qn2CeOXgms\n-----END RSA PRIVATE KEY-----\n' >/tmp/key.pem.crypt"
- openssl rsa -in /tmp/key.pem.crypt -passin env:PASSPHRASE -out /tmp/key.pem
- socat UNIX-LISTEN:/tmp/docker.sock,fork OPENSSL:$REMOTE,cert=/tmp/cert.pem,cafile=/tmp/cert.pem,key=/tmp/key.pem & sleep 1
- wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O /tmp/docker
- chmod +x /tmp/docker
- /tmp/docker -H unix:///tmp/docker.sock build -t docker .
- /tmp/docker -H unix:///tmp/docker.sock run -i -privileged docker hack/make.sh test | tee /tmp/test.log
script: grep -q ^PASS /tmp/test.log && ! grep -q ^FAIL /tmp/test.log
notifications:
email:
env:
global:
- secure: "n6kRDLJaWVmgEyJSs2cxFipzbUnQu4is3z+1If5QhEKiaP8+Md5HAO5TF+pCXwt+4g8/zjH390YZUt+v5ndoS1FyvnaY8e76dbi56hGZucueOFxJ+C9d1OqT2zodvpS9/DZYtyfnBrBqJCEAbCiB+OuCAwFRKINX/F0dDufkxk0="
- secure: "fw/MLhIljrejMUUjVFNTPDH0qQ04aDEWEAksxJMxWnNQIaRTCQH0i41CZp6RRTLll2eZ7p90R08oRtSFhM0AHZ95IQnZSEgUiRZUOWn7HZHgIy12CNHZvmodJkB8gnkh94vBDanl3vx45Tvpxfbx3gUyCdVjGYeY0b2GMooH2+w="