forked from imazen/imageflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·111 lines (111 loc) · 4.12 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
sudo: required
language: generic
filter_secrets: false
cache:
cargo: true
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
env: TARGET_CPU=x86-64 PACKAGE_SUFFIX=ubuntu_16_04-x86_64 NUGET_RUNTIME=linux-x64 DOCKER_IMAGE=imazen/imageflow_build_ubuntu16 UPLOAD_BUILD=True FETCH_COMMIT_SUFFIX=linux64
sudo: required
services:
- docker
- os: linux
dist: trusty
env: TARGET_CPU=x86-64 PACKAGE_SUFFIX=ubuntu_18_04-x86_64 NUGET_RUNTIME=ubuntu.18.04-x64 DOCKER_IMAGE=imazen/imageflow_build_ubuntu18 UPLOAD_BUILD=True FETCH_COMMIT_SUFFIX=linux64_glibc227 PUBLISH_DOCKER=True DEPLOY_DOCS=True
sudo: required
services:
- docker
- os: osx
env: TARGET_CPU=nehalem PACKAGE_SUFFIX=osx_10_11-x86_64 NUGET_RUNTIME=osx-x64 UPLOAD_BUILD=True TARGET=x86_64-apple-darwin FETCH_COMMIT_SUFFIX=mac64
language: rust
rust: stable
osx_image: xcode12.2
install:
- ci/travis_install.sh
- os: linux
dist: trusty
env: TARGET_CPU=haswell PACKAGE_SUFFIX=ubuntu_18_04-x86_64-haswell NUGET_RUNTIME=ubuntu.18.04-x64 DOCKER_IMAGE=imazen/imageflow_build_ubuntu18 UPLOAD_BUILD=True UPLOAD_DOCS=True FETCH_COMMIT_SUFFIX=linux64_haswell_glibc227
sudo: required
services:
- docker
- os: linux
dist: trusty
env: UPLOAD_BUILD=False COVERAGE=True CODECOV=True VALGRIND=True BUILD_RELEASE=False CLEAN_RUST_TARGETS=True TARGET_CPU=sandybridge PACKAGE_SUFFIX=x86_64-sandy_valgrind_linux-gcc7 DOCKER_IMAGE=imazen/imageflow_build_ubuntu18_debug
sudo: required
services:
- docker
install:
- ci/travis_install.sh
script:
- travis_wait 60 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
edge: true
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: main
condition: $UPLOAD_BUILD = True
- provider: s3
edge: true
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
- provider: s3
edge: true
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/nuget
on:
tags: true
condition: $UPLOAD_BUILD = True
- deploy:
edge: true
provider: releases
api_key:
secure: bmyTqVANN+h8t42pXD3EKN3f+RQYhH2aaV6ChCV+Wlv52oXWBzGcRAK/99KnRYpiVPRWzpLYZtI0O5NMOLSnpF3t4OViDkHZmbLk2X1zYfyK+zPK0hee5yxtJyDMB1iQwVaulbOJrusm7qLRHUJW/JsGztCQdWyyDbqiICrZ0xk=
file_glob: true
file: "${GITHUB_FILES}"
skip_cleanup: true
prerelease: true
on:
tags: true
condition: $UPLOAD_BUILD = True
- deploy:
provider: pages
skip-cleanup: true
github-token:
secure: bmyTqVANN+h8t42pXD3EKN3f+RQYhH2aaV6ChCV+Wlv52oXWBzGcRAK/99KnRYpiVPRWzpLYZtI0O5NMOLSnpF3t4OViDkHZmbLk2X1zYfyK+zPK0hee5yxtJyDMB1iQwVaulbOJrusm7qLRHUJW/JsGztCQdWyyDbqiICrZ0xk=
local-dir: docs/book/
keep-history: false
fqdn: docs.imageflow.io
on:
branch: main
condition: $DEPLOY_DOCS = True
after_deploy:
- ./ci/travis_publish_docker_images.sh docker/imageflow_tool imazen/imageflow_tool
- ./ci/travis_publish_docker_images.sh docker/imageflow_server_unsecured imazen/imageflow_server_unsecured