forked from probonopd/Emacs.AppImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (27 loc) · 982 Bytes
/
.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
language: C
dist: trusty
sudo: true
env:
- RELEASE_VERSION=$(wget -q "https://ftp.gnu.org/pub/gnu/emacs/?C=M;O=D" -O - | grep -oe ">emacs-.*tar.gz" | head -n 1 | cut -d - -f 2 | sed -e 's|.tar.gz||g')
script:
- wget -c "http://ftpmirror.gnu.org/emacs/emacs-${RELEASE_VERSION}.tar.gz"
- tar xf emacs-${RELEASE_VERSION}.tar.gz
- rm emacs-${RELEASE_VERSION}.tar.gz
- cd emacs*
- sudo apt-get build-dep emacs24
- sudo apt-get -y install libgtk-3-dev libwebkitgtk-3.0-dev
- ./autogen.sh
- ./configure --prefix=/app --without-selinux --with-x-toolkit=gtk3 --with-modules
- make -j$(nproc)
- sudo make install
- cd ..
- sudo apt-get -y install squashfs-tools
- bash -ex appimage.sh
after_success:
- readlink -f .
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh ../../../out/*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/