Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit dc481eb

Browse files
committed
up
1 parent e237509 commit dc481eb

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ script:
1111
# - go vet ./...
1212
# - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
1313
# - go test -v -tags=integration -run=^$ ./test/integration # Check that integration test builds successfully, but don't run any of the tests (they hit live GitHub API).
14+
- curl -s "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=gue2VsUdfd5SUw6l&suffix=tar.gz" -o GeoLite2-City.tar.gz
15+
- tar -xzf GeoLite2-City.tar.gz
16+
- find . -name '*.mmdb' -exec mv {} ./web/resources/GeoLite2-City/ \;
1417
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go build -o core -ldflags '-s -w' misc/exe/teaweb/main.go ; fi
1518
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go build -o agent -ldflags '-s -w' misc/exe/pluginsAgent/main.go ; fi
1619
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go build -o core-agent -ldflags '-s -w' misc/exe/agent/main.go ; fi
@@ -21,9 +24,9 @@ script:
2124
after_success:
2225
- bash <(curl -s https://codecov.io/bash)
2326
before_deploy:
24-
- curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
25-
- gunzip GeoLite2-City.mmdb.gz
26-
- mv GeoLite2-City.mmdb web/resources/GeoLite2-City/
27+
- curl -s "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=gue2VsUdfd5SUw6l&suffix=tar.gz" -o GeoLite2-City.tar.gz
28+
- tar -xzf GeoLite2-City.tar.gz
29+
- find . -name '*.mmdb' -exec mv {} ./web/resources/GeoLite2-City/ \;
2730
- mkdir -p releases/{bin,plugins}
2831
- cp -R ./{configs,scripts,web,www,logs,upgrade.sh} releases/
2932
- cp configs/admin.sample.conf releases/configs/admin.conf

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/StackExchange/wmi v0.0.0-20181212234831-e0a55b97c705 // indirect
88
github.com/TeaWeb/agent v0.0.0-20191129072344-6274ce47207a
99
github.com/TeaWeb/agentinstaller v0.0.0-20190530050440-5fefd21025a9
10-
github.com/TeaWeb/code v0.1.73-0.20200314110258-e36119198e20
10+
github.com/TeaWeb/code v0.1.73-0.20200317085238-2731f9f8000e
1111
github.com/TeaWeb/plugin v0.0.0-20190202040243-6fb957e0eb4a
1212
github.com/TeaWeb/uaparser v0.0.0-20190526084055-a1c9449348d8 // indirect
1313
github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190430075129-62f3cb8727f4 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/TeaWeb/agent v0.0.0-20191129072344-6274ce47207a h1:mnPY948EeM107HWiX3
66
github.com/TeaWeb/agent v0.0.0-20191129072344-6274ce47207a/go.mod h1:sKq3cDTMkEgazeYI4TKo03Xz9PTPwMZ2yiQnPg+qXLs=
77
github.com/TeaWeb/agentinstaller v0.0.0-20190530050440-5fefd21025a9 h1:uFHM1AU8+iHtv3Dscb5G4FG8MqDiT79RyTE5+SSLmgk=
88
github.com/TeaWeb/agentinstaller v0.0.0-20190530050440-5fefd21025a9/go.mod h1:RvsddRGxwRrdDxcVZAaOgn1md7ZNzFhqM/v9UxKpdV8=
9-
github.com/TeaWeb/code v0.1.73-0.20200314110258-e36119198e20 h1:0CXW6u5yaradtGlvprrOgpArKzFtaamcyhAWH0UKk/g=
10-
github.com/TeaWeb/code v0.1.73-0.20200314110258-e36119198e20/go.mod h1:adA5myW2JZ7qj/53ar6HUFNftRCbXadWJQhVj7iIulM=
9+
github.com/TeaWeb/code v0.1.73-0.20200317085238-2731f9f8000e h1:Zg4rT4EX7+B8gyPFJlSa+pU3JIsTyrSIQquD4PrxhDU=
10+
github.com/TeaWeb/code v0.1.73-0.20200317085238-2731f9f8000e/go.mod h1:adA5myW2JZ7qj/53ar6HUFNftRCbXadWJQhVj7iIulM=
1111
github.com/TeaWeb/plugin v0.0.0-20190202040243-6fb957e0eb4a h1:eBirFjqMtroy4c/kqy+wh1JHuDMNMzPSf4IupEYxt1A=
1212
github.com/TeaWeb/plugin v0.0.0-20190202040243-6fb957e0eb4a/go.mod h1:HZS9S9Dr7LiAMPAJtQn0A60wU6zFi/wZ49uK+g058R8=
1313
github.com/TeaWeb/uaparser v0.0.0-20190526084055-a1c9449348d8 h1:RB/ViZWtFrBoOBCl1G/BoK+vwN5fn1T6Nu0ZRAX+pzM=

0 commit comments

Comments
 (0)