-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (50 loc) · 2.33 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
sudo: required
language: cpp
services:
- docker
env:
global:
- RELEASE_BRANCH="master"
before_install:
# appimagetool
- wget -nv -c "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" -O appimagetool.AppImage
script:
# archlinux
- docker build . -f deploydocker/Dockerfile.wine-deploy.archlinux -t wine-appimage.archlinux
after_success:
- mkdir apps
# archlinux
- docker run --rm -v $(pwd)/apps:/tmp/apps -ti wine-appimage.archlinux cp result.tar /tmp/apps
# extract result
- tar xvf apps/result.tar -C apps
- rm -rf apps/result.tar
# md5sum tool
- wget -c https://github.com/ferion11/libsutil/releases/download/md5sum_util_v0.1/md5sum_util.sh
- bash md5sum_util.sh apps
# uploadtool
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- |- # publish
if [[ ("$TRAVIS_BRANCH" != "$RELEASE_BRANCH" && "$TRAVIS_BRANCH" != "$TRAVIS_TAG") || "$TRAVIS_EVENT_TYPE" != "push" ]]; then
echo 'Publishing release to GitHub...'
export UPLOADTOOL_SUFFIX="$TRAVIS_BRANCH"
export UPLOADTOOL_BODY="Instructions on using the AppImage can be found [here](https://github.com/${TRAVIS_REPO_SLUG}/blob/master/README.md)\n\nThis is the ***$UPLOADTOOL_SUFFIX experimental build*** for testing new features.\n\nTravis CI build log: $TRAVIS_BUILD_WEB_URL"
bash upload.sh apps/*
elif [[ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]]; then
echo 'Publishing release to GitHub...'
export UPLOADTOOL_BODY="Instructions on using the AppImage can be found [here](https://github.com/${TRAVIS_REPO_SLUG}/blob/master/README.md)\n\nThis is the ***latest development build***.\n\nTravis CI build log: $TRAVIS_BUILD_WEB_URL"
bash upload.sh apps/*
else
echo 'Publishing release to GitHub...'
export UPLOADTOOL_BODY="Instructions on using the AppImage can be found [here](https://github.com/${TRAVIS_REPO_SLUG}/blob/master/README.md)\n\nThis is the ***release $TRAVIS_TAG stable build***.\n\nTravis CI build log: $TRAVIS_BUILD_WEB_URL"
bash upload.sh apps/*
fi
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
- /^release-[0-9a-z\-]*/
- /^(?i:untagged)-.*$/
notifications:
email:
on_success: change # default: change
on_failure: always # default: always