forked from maujin111/LibreSprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (53 loc) · 1.99 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
language: cpp
compiler: gcc
os: linux
dist: bionic
cache: ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- cmake
- ninja-build
- ccache
- libx11-dev
- libxcursor-dev
env:
- SHARED=OFF
before_install:
- if [ "$SHARED" == "ON" ]; then sudo apt-get install -y libcurl4-openssl-dev libgif-dev libfreetype6-dev libjpeg-dev libz-dev libpng-dev libtinyxml-dev libpixman-1-dev liballegro4.2-dev ; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
before_script:
- ccache -z
- mkdir build
- cd build
- cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/install -DWITH_DESKTOP_INTEGRATION=ON -DUSE_SHARED_CURL=$SHARED -DUSE_SHARED_GIFLIB=$SHARED -DUSE_SHARED_FREETYPE=$SHARED -DUSE_SHARED_JPEGLIB=$SHARED -DUSE_SHARED_ZLIB=$SHARED -DUSE_SHARED_LIBPNG=$SHARED -DUSE_SHARED_TINYXML=$SHARED -DUSE_SHARED_PIXMAN=$SHARED -DUSE_SHARED_ALLEGRO4=$SHARED -DENABLE_TESTS=ON
script:
- ninja libresprite
- ninja install
- cd "${TRAVIS_BUILD_DIR}"
- ccache -s
after_success:
- |
if [ "$TRAVIS_BRANCH" == "master" ]; then
cd build
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appdir AppDir
cp -r install/share/icons/* AppDir/usr/share/icons
mv install/share/libresprite/data/ AppDir/usr/bin/
./linuxdeploy-x86_64.AppImage --appdir AppDir -e install/bin/libresprite -d ../desktop/libresprite.desktop --output appimage
mkdir out
mv LibreSprite-*.AppImage -t out
ls -lh out/*
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh out/*
fi
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous.*)$/
notifications:
email: false