-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (25 loc) · 920 Bytes
/
.travis.yml
File metadata and controls
32 lines (25 loc) · 920 Bytes
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
sudo: required
if: tag IS blank
services:
- docker
install:
- bundle install && chmod -R ug+rwx .
- mkdir bin && docker build -t ci .
script:
- docker run -v $TRAVIS_BUILD_DIR/bin:/ffmpeg-static/bin -ti --rm ci bash -c "./build.sh -j $(($(nproc) + 1)) ; zip -r bin/build.zip ./ >> zip.log 2>&1"
- ls -al bin
- ./bin/ffmpeg -codecs
- ./bin/ffmpeg -i 'https://archive.org/download/pattersonh2006-01-07.184.flac16/pattersonh2006-01-07d1t01.flac' output.mp3
before_deploy:
- git config --local user.name "$EMAIL"
- git config --local user.email "$USERNAME"
- git tag "`date +'%Y%m%d'`-`./bin/ffmpeg -version | { read f s t r ; echo $t ; }`"
deploy:
provider: releases
api_key:
secure: $GITHUB_OAUTH
file_glob: true
file: bin/*
skip_cleanup: true
after_deploy:
- ruby release_body.rb -s $GITHUB_OAUTH -t "`git describe --tags`" -b "<pre><code>`./bin/ffmpeg -version`</code></pre>"