forked from dontpanic92/wxGo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
67 lines (59 loc) · 1.77 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
dist: trusty
language: go
go:
- 1.8.x
- 1.9.x
- tip
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- libxxf86vm-dev
- libnotify-dev
- libgtk-3-dev
- libpango1.0-dev
- libatk1.0-dev
- libglib2.0-dev
- libglib2.0-0
- libglu1-mesa-dev
- libjpeg-dev
- libtiff-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- libwebkitgtk-3.0-dev
before_install:
- rvm install 2.2.6
- gem install dropbox-deployment
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then free -m; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90; fi
script:
- gcc --version
- g++ --version
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ld --version; fi
- travis_wait 50 go get -t -v -x ./...
- cd utils
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait 50 bash build_binary_package.sh linux amd64; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 50 bash build_binary_package.sh darwin amd64; fi
# the following base64 encoded string is:
# deploy:
# dropbox_path: /builds
# artifacts_path: "builds"
# debug: true
# It is a pain to contain YAML in YAML
after_success:
- mkdir builds
- mv *.zip builds
- echo ZGVwbG95OgogIGRyb3Bib3hfcGF0aDogL2J1aWxkcwogIGFydGlmYWN0c19wYXRoOiAiYnVpbGRzIgogIGRlYnVnOiB0cnVlCg== | base64 --decode > dropbox-deployment.yml
- pwd
- ls
- cat dropbox-deployment.yml
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then dropbox-deployment; fi