forked from linuxmint/mintupdate
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
30 lines (28 loc) · 1.09 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
env:
matrix:
- BUILD_ENV=linuxmint-sylvia
- BUILD_ENV=linuxmint-cindy
dist: trusty
sudo: required
services:
- docker
script:
- docker run -v `pwd`/output:/output linuxmintd/${BUILD_ENV} /bin/sh -c "cd /output; mint-build mint-common;"
- docker run -v `pwd`:/source linuxmintd/${BUILD_ENV} /bin/sh -c "cd /source; mint-build;"
- |
if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then
RELEASE="mintupdate_${TRAVIS_COMMIT}"
mkdir "${RELEASE}"
cd "${RELEASE}"
cp ../output/*/*.deb ./
cp ../../*.deb ./
git log > git.log
cd ..
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG="TRAVIS-".`git rev-parse --abbrev-ref HEAD`.$BUILD_ENV
./ghr -t $GITHUB_TOKEN -u clefebvre -r mintupdate -replace $TAG ${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u clefebvre -r mintupdate -recreate -b "Latest unstable packages" $TAG ${RELEASE}.tar.gz
fi