-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (54 loc) · 1.58 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
sudo: required
language: bash
dist: xenial
#dist: trusty
services:
- docker
#python:
#- "2.7"
#- "3.6"
#before_install:
#- ls -la /home
#- pip install .
env:
global:
- DOCKER_COMPOSE_VERSION=1.22.0
- IMAGE_TAG_CI=$TRAVIS_PULL_REQUEST_SHA-ci
before_install:
#- echo "net.ipv4.ip_forward = 1" | sudo tee /etc/sysctl.d/99-ipv4-forward-pls.conf
- sudo ls -la /etc/sysctl.d/
- sudo cat /etc/sysctl.d/*
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker version && docker-compose version
- cat /etc/sysctl.d/99-travis-disable-ipv6.conf
- ls -la /etc/sysctl.d
script:
- docker ps
- >
date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
- ./check-dns-bits
- >
date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
notifications:
slack:
rooms:
- travisci:6PKoW5khxrYKSYje7JIbd4yL
on_success: change
on_failure: always
before_script:
- docker pull tutum/dnsutils
- git config --global user.email "[email protected]"
- git config --global user.name "Travis-CI"
after_script:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- git checkout master
- git commit --allow-empty -m "Empty commit from Travis"
- git push origin master
after_failure:
- date -u
after_success:
- date -u