|
1 | | -# Based on the "trust" template v0.1.2 |
2 | | -# https://github.com/japaric/trust/tree/v0.1.2 |
3 | | - |
4 | | -dist: trusty |
5 | 1 | language: rust |
6 | | -services: docker |
7 | | -sudo: required |
8 | | - |
9 | | -env: |
10 | | - global: |
11 | | - - CRATE_NAME=oscar |
12 | 2 |
|
13 | | -matrix: |
| 3 | +jobs: |
14 | 4 | include: |
15 | | - # Android |
16 | | - # - env: TARGET=aarch64-linux-android DISABLE_TESTS=1 |
17 | | - # - env: TARGET=arm-linux-androideabi DISABLE_TESTS=1 |
18 | | - # - env: TARGET=armv7-linux-androideabi DISABLE_TESTS=1 |
19 | | - # - env: TARGET=i686-linux-android DISABLE_TESTS=1 |
20 | | - # - env: TARGET=x86_64-linux-android DISABLE_TESTS=1 |
21 | | - |
22 | | - # iOS |
23 | | - # - env: TARGET=aarch64-apple-ios DISABLE_TESTS=1 |
24 | | - # os: osx |
25 | | - # - env: TARGET=armv7-apple-ios DISABLE_TESTS=1 |
26 | | - # os: osx |
27 | | - # - env: TARGET=armv7s-apple-ios DISABLE_TESTS=1 |
28 | | - # os: osx |
29 | | - # - env: TARGET=i386-apple-ios DISABLE_TESTS=1 |
30 | | - # os: osx |
31 | | - # - env: TARGET=x86_64-apple-ios DISABLE_TESTS=1 |
32 | | - # os: osx |
33 | | - |
34 | | - # Linux |
35 | | - - env: TARGET=aarch64-unknown-linux-gnu |
36 | | - - env: TARGET=arm-unknown-linux-gnueabi |
37 | | - - env: TARGET=armv7-unknown-linux-gnueabihf |
38 | | - # - env: TARGET=i686-unknown-linux-gnu |
39 | | - # - env: TARGET=i686-unknown-linux-musl |
40 | | - # - env: TARGET=mips-unknown-linux-gnu |
41 | | - # - env: TARGET=mips64-unknown-linux-gnuabi64 |
42 | | - # - env: TARGET=mips64el-unknown-linux-gnuabi64 |
43 | | - # - env: TARGET=mipsel-unknown-linux-gnu |
44 | | - # - env: TARGET=powerpc-unknown-linux-gnu |
45 | | - # - env: TARGET=powerpc64-unknown-linux-gnu |
46 | | - # - env: TARGET=powerpc64le-unknown-linux-gnu |
47 | | - # - env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1 |
48 | 5 | - env: TARGET=x86_64-unknown-linux-gnu |
49 | | - - env: TARGET=x86_64-unknown-linux-musl |
50 | | - |
51 | | - # OSX |
52 | | - # - env: TARGET=i686-apple-darwin |
53 | | - # os: osx |
| 6 | + os: linux |
54 | 7 | - env: TARGET=x86_64-apple-darwin |
55 | 8 | os: osx |
56 | | - |
57 | | - # *BSD |
58 | | - # - env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1 |
59 | | - # - env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1 |
60 | | - - env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1 |
61 | | - |
62 | | - # Windows |
63 | 9 | - env: TARGET=x86_64-pc-windows-gnu |
64 | | - |
65 | | - # Bare metal |
66 | | - # These targets don't support std and as such are likely not suitable for |
67 | | - # most crates. |
68 | | - # - env: TARGET=thumbv6m-none-eabi |
69 | | - # - env: TARGET=thumbv7em-none-eabi |
70 | | - # - env: TARGET=thumbv7em-none-eabihf |
71 | | - # - env: TARGET=thumbv7m-none-eabi |
72 | | - |
73 | | - # Testing other channels |
74 | | - # - env: TARGET=x86_64-unknown-linux-gnu |
75 | | - # rust: nightly |
76 | | - # - env: TARGET=x86_64-apple-darwin |
77 | | - # os: osx |
78 | | - # rust: nightly |
79 | | - |
80 | | -before_install: |
81 | | - - set -e |
82 | | - - rustup self update |
83 | | - |
84 | | -install: |
85 | | - - sh ci/install.sh |
86 | | - - source ~/.cargo/env || true |
| 10 | + os: windows |
87 | 11 |
|
88 | 12 | script: |
89 | | - - bash ci/script.sh |
90 | | - |
91 | | -after_script: set +e |
| 13 | + - cargo build --release |
92 | 14 |
|
93 | 15 | before_deploy: |
94 | | - - sh ci/before_deploy.sh |
| 16 | + - mv ./target/release/oscar "oscar-$TARGET." |
95 | 17 |
|
96 | 18 | deploy: |
97 | | - api_key: |
| 19 | + token: |
98 | 20 | secure: bKLcLL81nzHooDWFirca5oLCOV0lJ//1NIpJ4uCnRN2zgomPVgAlaDGCcu5Kzw+/Y4GnHAyFxMFfIwMF1R12LBUsACD3rM6g8iBV708XWLGcn5m0PzPMvGACUyhn+dlSrOI/sFoYVIugwm54lfR2zpz9TZA38KlPnLElgb/7izdioiVJVUStoUmK7Pyqa6/EzzWaqpXMh5xz7q83To50lXFMsj1nZ6wjUx1dmZNfWVqQsJOsDDXn/2bXHhJDzn22onlCgmDNBl/8505B3G+6BauEwZBY9Yxd642aMXQ9gOGAUeDiqPkofsk2G3Purf9Z8exqGMirB5+mP/o3bGZwfcJx3Bidya275F0+MhbyluS9+9QBgqCrGpcBrAjLGl7cymGbmjtwHUrUMRAf1rb7nNSHbKcyk7ppE5FI9NURtw7UfdKJX3/uxuo+NQC/2P6gnoL8LjVIyEAABVwVMbyKKndE8aShonuW/fUpFbpNTY0qkt3QjuF3qYjq5Dhu6WYTuiQB4o6IhS10p5cxrBdSYG/QmSvHM1EDmUDNtLy1HeZcqS4P44L6DCFomkJ7goOAWJjaYjQysNaA61b3XxqE2k50ciYvrO1vFIVD2guCKqMrZwU2LD4DHlbd7vdSqtob0tl5QabSvFPaXHztT3Ef/SdFW4VhwZbWwl9cX/JJ5O8= |
99 | 21 | file_glob: true |
100 | | - file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.* |
| 22 | + file: oscar-$TARGET.* |
101 | 23 | on: |
102 | | - # TODO Here you can pick which targets will generate binary releases |
103 | | - # In this example, there are some targets that are tested using the stable |
104 | | - # and nightly channels. This condition makes sure there is only one release |
105 | | - # for such targets and that's generated using the stable channel |
106 | | - condition: $TRAVIS_RUST_VERSION = stable |
107 | 24 | tags: true |
108 | 25 | provider: releases |
109 | | - skip_cleanup: true |
110 | | - |
111 | | -cache: cargo |
112 | | -before_cache: |
113 | | - # Travis can't cache files that are not readable by "others" |
114 | | - - chmod -R a+r $HOME/.cargo |
| 26 | + cleanup: true |
115 | 27 |
|
116 | 28 | branches: |
117 | 29 | only: |
|
0 commit comments