forked from imazen/imageflow
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
97 lines (95 loc) · 3.6 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
sudo: required
language: generic
filter_secrets: false
cache:
cargo: true
env:
global:
- secure: "oO/CIaTFVTxvV6U7nG8mM7AxrQNKm89RodXXDHbibmGQuliaOcU4BTkr6gLsx/vezjgMo1ocfHItxZPlU52GeNiLBf5uwPEjiq6w2+Lq20Xjui8HbtC5wEj1NaAa/Rn5I53+Y0KmoTVXB4YKsY6rWHELW2dpJc07kyFqSE5b2tY="
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
before_install:
- docker build -t ubuntu14 ci/docker/travis/ubuntu14
env: TARGET_CPU=x86-64 PACKAGE_SUFFIX=ubuntu_14_04-x86_64 NUGET_RUNTIME=ubuntu.14.04-x64 DOCKER_IMAGE=ubuntu14 UPLOAD_BUILD=True FETCH_COMMIT_SUFFIX=linux64
sudo: required
services:
- docker
- os: linux
dist: trusty
before_install:
- docker build -t ubuntu16 ci/docker/travis/ubuntu16
env: TARGET_CPU=sandybridge PACKAGE_SUFFIX=ubuntu_16_04-x86_64-sandybridge NUGET_RUNTIME=ubuntu.16.04-x64 DOCKER_IMAGE=ubuntu16 UPLOAD_BUILD=True UPLOAD_DOCS=True FETCH_COMMIT_SUFFIX=linux64_sandybridge_glibc223
sudo: required
services:
- docker
- os: linux
dist: trusty
before_install:
- docker build -t ubuntu16 ci/docker/travis/ubuntu16
env: TARGET_CPU=haswell PACKAGE_SUFFIX=ubuntu_16_04-x86_64-haswell NUGET_RUNTIME=ubuntu.16.04-x64 DOCKER_IMAGE=ubuntu16 UPLOAD_BUILD=True UPLOAD_DOCS=True FETCH_COMMIT_SUFFIX=linux64_haswell_glibc223
sudo: required
services:
- docker
- os: osx
env: TARGET_CPU=nehalem PACKAGE_SUFFIX=osx_10_11-x86_64 NUGET_RUNTIME=osx.10.11-x64 UPLOAD_BUILD=True TARGET=x86_64-apple-darwin FETCH_COMMIT_SUFFIX=mac64
language: rust
rust: beta
install:
- ci/travis_install.sh
- brew install sccache
- os: linux
dist: trusty
before_install:
- docker build -t ubuntu16 ci/docker/travis/ubuntu16
env: UPLOAD_BUILD=False COVERAGE=True CODECOV=True VALGRIND=True BUILD_RELEASE=False CLEAN_RUST_TARGETS=True TARGET_CPU=sandybridge P PACKAGE_SUFFIX=x86_64-sandy_valgrind_linux-gcc54 DOCKER_IMAGE=ubuntu16
sudo: required
services:
- docker
install:
- ci/travis_install.sh
script:
- ci/travis_run.sh
before_cache:
- rm -rf $HOME/.cargo/registry/src
before_deploy:
- export GITHUB_FILES="$(ls artifacts/upload/releases/v*/imageflow-v*.tar.gz)"
- echo "Planning to upload ${GITHUB_FILES} to GitHub"
deploy:
- provider: s3
access_key_id: AKIAIMZ7QOL24GUASH6A
secret_access_key:
secure: izS5sgSOhDwjuQaFTTgMlhUd5759ZnuoxxoFDo41XZATNw58P6FtzdfslfoVa+xXjq/1N0GDAM+ENm7XYNITVqq1aJARYKy5X+IUwVKQw/UYx0rb1X2ZV7oDHsFvY5pSRiVFD1tQ0fZ9JKAkb1LTnSutfVYHNYvPHiyYQf07nig=
bucket: imageflow-nightlies
acl: public_read
skip_cleanup: true
local_dir: artifacts/upload
on:
branch: master
condition: $UPLOAD_BUILD = True
- provider: s3
access_key_id: AKIAIMZ7QOL24GUASH6A
secret_access_key:
secure: izS5sgSOhDwjuQaFTTgMlhUd5759ZnuoxxoFDo41XZATNw58P6FtzdfslfoVa+xXjq/1N0GDAM+ENm7XYNITVqq1aJARYKy5X+IUwVKQw/UYx0rb1X2ZV7oDHsFvY5pSRiVFD1tQ0fZ9JKAkb1LTnSutfVYHNYvPHiyYQf07nig=
bucket: imageflow-nightlies
acl: public_read
skip_cleanup: true
local_dir: artifacts/upload
on:
tags: true
condition: $UPLOAD_BUILD = True
- deploy:
provider: releases
api_key:
- secure: "U9jYsyiN3u9GVPbMtroFDyDmUIrzV6vyvtfCAY7I9YiepjrL+zP7FzmZU8sk56ukV1ZRM7QXP1fs1hTeAkcEPgfhITvqnCsQRcGzIEg3Ri5OZ+HVjt7ATGqVCndadL/cBhydmpq7cDfEIxhdzhmvfhcg/fjqX4oVOh6EM+dUG3E="
file_glob: true
file: "${GITHUB_FILES}"
skip_cleanup: true
prerelease: true
on:
tags: true
condition: $UPLOAD_BUILD = True
after_success:
- if [[ "$FETCH_COMMIT_SUFFIX" == "linux64_sandybridge_glibc223" ]]; then ./ci/travis_trigger_docker_cloud.sh; fi