forked from Happy-Ferret/Moz2D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (51 loc) · 1.67 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
language: cpp
sudo: required
dist: trusty
osx_image: xcode8
os:
- linux
- osx
env:
- ARCH="i386"
- ARCH="x86_64"
matrix:
exclude:
- os: linux
env: ARCH="i386"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Updating Homebrew...";
brew update;
brew tap homebrew/versions;
sudo chown -R $(whoami) /usr/local;
brew unlink node; brew unlink mercurial; brew unlink cmake; brew unlink autoconf;
brew install node yasm mercurial cmake gawk ccache [email protected];
brew link --overwrite cmake;
brew link --overwrite mercurial;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
curl -sL https://deb.nodesource.com/setup_7.x | sudo bash -;
sudo apt-get install nodejs yasm autoconf2.13;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$ARCH" == "x86_64" ]]; then
sudo apt-get update;
sudo apt-get install libgtk2.0-dev libgtk-3-dev libgconf2-dev;
sudo apt-get install libasound2-dev libpulse-dev;
sudo apt-get install libxt-dev libxext-dev libxcb-shm0-dev libx11-xcb-dev;
sudo apt-get install mesa-common-dev libgl1-mesa-dev;
fi
script:
- ./build.sh --arch ${ARCH}
before_deploy:
- mkdir -p "bin/$MOZ_VERSION/$ARCH"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cp build/libMoz2D.so "bin/$MOZ_VERSION/$ARCH/"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp build/libMoz2D.dylib "bin/$MOZ_VERSION/$ARCH/"; fi
- echo "Library should be in bin/$MOZ_VERSION/$ARCH"
- ( cd bin/$MOZ_VERSION/$ARCH && ls -la )
deploy:
provider: bintray
file: "bintray-${MOZ_VERSION}.json"
user: "syrel"
key: ${BINTRAY_API_KEY}
skip_cleanup: true