Skip to content

Commit 149bb4d

Browse files
committed
Use Travis APT addon
1 parent bda4efc commit 149bb4d

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.travis.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
lang: c
2-
sudo: true
1+
language: c
32
dist: trusty
3+
sudo: false
44

5-
install:
6-
- sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
7-
- sudo add-apt-repository -y ppa:vala-team
8-
- sudo apt-get -q update
9-
- sudo apt-get -y install libgtk-3-dev valac-0.30 clang cmake libvala-0.30 git
5+
addons:
6+
apt:
7+
sources:
8+
- sourceline: "ppa:vala-team/ppa"
9+
packages:
10+
- "libgtk-3-dev"
11+
- "valac-0.30"
12+
- "clang"
13+
- "cmake"
14+
- "libvala-0.30"
15+
- "git"
1016

1117
script:
1218
- valac --pkg 'gtk+-3.0' --pkg 'gmodule-2.0' --pkg posix main.vala progress.vala -o appimageupdategui -v
@@ -16,14 +22,15 @@ script:
1622
- chmod a+x AppImageUpdate.AppDir/usr/bin/* AppImageUpdate.AppDir/AppRun
1723
- cp -r ./ui AppImageUpdate.AppDir/usr/bin/
1824
- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
19-
- chmod a+x appimagetool*.AppImage
20-
- ./appimagetool*.AppImage ./AppImageUpdate.AppDir -u "gh-releases-zsync|AppImage|AppImageUpdate|continuous|AppImageUpdate-*x86_64.AppImage.zsync"
25+
- chmod a+x appimagetool-x86_64.AppImage
26+
- ./appimagetool-x86_64.AppImage --appimage-extract
27+
- squashfs-root/AppRun ./AppImageUpdate.AppDir -u "gh-releases-zsync|AppImage|AppImageUpdate|continuous|AppImageUpdate-*x86_64.AppImage.zsync"
2128
- ls -lh
22-
29+
2330
after_success:
2431
- ls -lh out/* # Assuming you have some files in out/ that you would like to upload
2532
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
26-
- bash ./upload.sh AppImageUpdate*AppImage AppImageUpdate*zsync
33+
- bash ./upload.sh AppImageUpdate-x86_64.AppImage AppImageUpdate-x86_64.AppImage.zsync
2734

2835
branches:
2936
except:

0 commit comments

Comments
 (0)