-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (30 loc) · 831 Bytes
/
.travis.yml
File metadata and controls
34 lines (30 loc) · 831 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
33
34
language: rust
cache: cargo
sudo: required
os:
- linux
- osx
before_install:
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
echo "deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list;
sudo apt-get update -q;
sudo apt-get build-dep -y libpng16-16;
sudo apt-get source -b -t xenial libpng16-16;
fi
script:
- cargo build --release --features=sse,lcms2-static
- cp ./target/release/pngquant $TRAVIS_BUILD_DIR/$TRAVIS_OS_NAME-pngquant
deploy:
provider: releases
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: $TRAVIS_TAG
overwrite: true
skip_cleanup: true
api_key: $github_token
file_glob: true
file:
- $TRAVIS_BUILD_DIR/linux-pngquant
- $TRAVIS_BUILD_DIR/osx-pngquant
on:
tags: true