-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
33 lines (30 loc) · 1.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
language: go
go:
- 1.9
addons:
ssh_known_hosts:
- 127.0.0.1
before_install:
- go get -u -v github.com/golang/lint/golint
- echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null
- wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.27.tar.gz
- sudo apt-get update
- sudo apt-get install openssl -y
- sudo apt-get install make -y
- tar -xzf squid-3.5.27.tar.gz
- cd squid-3.5.27
- sudo ./configure '--enable-ssl' '--with-openssl' '--enable-ssl-crtd'
- sudo make
- sudo make install
- cd ..
- sudo touch /usr/local/squid/var/logs/access.log /usr/local/squid/var/logs/cache.log
- sudo chmod 777 /usr/local/squid/var/logs/access.log /usr/local/squid/var/logs/cache.log
- sudo /usr/local/squid/sbin/squid -f /home/travis/gopath/src/github.com/haxii/fastproxy/.travisfile/squid.conf
script:
- diff -u <(echo -n) <(sudo gofmt -s -d ./)
- diff -u <(echo -n) <(sudo go vet ./...)
- diff -u <(echo -n) <(sudo golint)
- go get github.com/haxii/socks5
- go get github.com/haxii/log/v2
- go get github.com/fangdingjun/socks-go
- go test -v ./...