-
Notifications
You must be signed in to change notification settings - Fork 268
/
.travis.yml
78 lines (57 loc) · 1.79 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
68
69
70
71
72
73
74
75
76
77
78
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
dist: trusty
sudo: false
language: go
notifications:
email: change
os:
- linux
- osx
# "1.9" go-sciter is incompatible with 1.9
# The latest 1.9 version was 9646a0a383.
go:
- "1.12"
- "1.13"
- "1.14"
- "1.15"
branches:
only:
- master
- travis
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libgtk-3-dev
- libgtk-3-0
- libstdc++-6-pic
cache:
directories:
- $GOPATH/src
- $GOPATH/pkg
before_cache:
- rm -rf $GOPATH/src/github.com/sciter-sdk/go-sciter/*
- rm -rf $GOPATH/pkg/**/github.com/sciter-sdk/go-sciter
install:
- export SDK_PATH=https://raw.githubusercontent.com/c-smile/sciter-sdk/master
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -so "$TRAVIS_BUILD_DIR/libsciter-gtk.so" $SDK_PATH/bin.lnx/x64/libsciter-gtk.so; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl -so "$TRAVIS_BUILD_DIR/libsciter.dylib" $SDK_PATH/bin.osx/libsciter.dylib; fi
# - go get golang.org/x/lint/golint
- go get -u github.com/GeertJohan/go.rice
- go get -u github.com/GeertJohan/go.rice/rice
before_script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$TRAVIS_BUILD_DIR"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cp "$TRAVIS_BUILD_DIR/libsciter.dylib" "$TRAVIS_BUILD_DIR/liblibsciter.dylib"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$TRAVIS_BUILD_DIR"; fi
- export PATH="$PATH:$TRAVIS_BUILD_DIR"
- export LIBRARY_PATH="$LIBRARY_PATH:$TRAVIS_BUILD_DIR"
- gcc --version
- go version
- go env
- echo $PWD
script:
- go build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd examples; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then go build ./...; fi