Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 2c4f52b

Browse files
committed
CI: stop making binary releases
1 parent 96d7710 commit 2c4f52b

File tree

7 files changed

+48
-149
lines changed

7 files changed

+48
-149
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @rust-embedded/cortex-m

.travis.yml

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,29 @@
1-
# Based on the "trust" template v0.1.2
2-
# https://github.com/japaric/trust/tree/v0.1.2
3-
4-
dist: trusty
51
language: rust
6-
services: docker
7-
sudo: required
8-
9-
env:
10-
global:
11-
- CRATE_NAME=itm
122

133
matrix:
14-
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
15-
# don't need
164
include:
17-
# Linux
18-
- env: TARGET=i686-unknown-linux-gnu
19-
- env: TARGET=i686-unknown-linux-musl
205
- env: TARGET=x86_64-unknown-linux-gnu
21-
- env: TARGET=x86_64-unknown-linux-musl
22-
23-
# OSX
24-
- env: TARGET=i686-apple-darwin
25-
os: osx
26-
- env: TARGET=x86_64-apple-darwin
27-
os: osx
6+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
287

298
before_install:
309
- set -e
31-
- rustup self update
3210

3311
install:
34-
- sh ci/install.sh
35-
- source ~/.cargo/env || true
12+
- bash ci/install.sh
3613

3714
script:
3815
- bash ci/script.sh
3916

4017
after_script: set +e
4118

42-
before_deploy:
43-
- sh ci/before_deploy.sh
44-
45-
deploy:
46-
api_key:
47-
secure: 1DhCSm5VHF9WKDqfpfAQZJDlUC7radCwsRpa8MEGbWTOYc0J5ZMV1ZCd20M1JDGVJO5cT5Eopo/eiB33qb/cppiFOGZYOSRgCRmwUHSmWWKR4xIzowlkgBk2/eXntYuP88EwQyw4u4cblT6KoicgBA3niuWuFQFN+yjgvbrq5JSaziuQwHvqc4R+OrKLjsJKc7/OK7O+hLjzGMZVvwgvg0NDiVjACUVzRnnr2ONs+gbr/pYXTVjG7tafX9xfzb+bjmAj9W6ID4Fgn20R7S/id6/Iqd53BG/tmstJ33tuC7didV5o1FDblRwqjw7r4lMknIhfNpRLQFAPcQhukssteDIrKwVA/XTDlvqKSEV417XSOILDWupdmri/OhhEH8GjHL3JaK8BFDep5E4j2Sx4Ee8XHDh7Lmx0Tdi4tm491CNGtHDfNc2fhpGpi8hTvA+KDR85Xyd/JbNsIi0faT4zUGWfdjgm60XVhSUviAaeBUdav+wX51PkiF2Am8Io/IEDNCtZ6CsO37qnUMG/5hQ5SeIlXlc0rAY3Qp8H5PpztZkXYXB0/w3yGS70Y9r60QQZeqQt64/qdFuvTNCF8vbEEXzE1WMoT+/ou+ITwXeGb7BWekJpRCG9qla/ro1Z7yIHBft6qYcqh4+kxIdKbWvLwq12epy1xrH585jawpg524E=
48-
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
49-
on:
50-
condition: $TRAVIS_RUST_VERSION = stable
51-
tags: true
52-
provider: releases
53-
skip_cleanup: true
54-
5519
cache: cargo
5620
before_cache:
5721
# Travis can't cache files that are not readable by "others"
5822
- chmod -R a+r $HOME/.cargo
5923

6024
branches:
6125
only:
62-
# release tags
63-
- /^v\d+\.\d+\.\d+.*$/
26+
- master
6427
- staging
6528
- trying
6629

CODE_OF_CONDUCT.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# The Rust Code of Conduct
2+
3+
## Conduct
4+
5+
**Contact**: [Cortex-M team](https://github.com/rust-embedded/wg#the-cortex-m-team)
6+
7+
* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.
8+
* On IRC, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all.
9+
* Please be kind and courteous. There's no need to be mean or rude.
10+
* Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer.
11+
* Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works.
12+
* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behavior. We interpret the term "harassment" as including the definition in the [Citizen Code of Conduct](http://citizencodeofconduct.org/); if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don't tolerate behavior that excludes people in socially marginalized groups.
13+
* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel ops or any of the [Cortex-M team][team] immediately. Whether you're a regular contributor or a newcomer, we care about making this community a safe place for you and we've got your back.
14+
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome.
15+
16+
## Moderation
17+
18+
These are the policies for upholding our community's standards of conduct.
19+
20+
1. Remarks that violate the Rust standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.)
21+
2. Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed.
22+
3. Moderators will first respond to such remarks with a warning.
23+
4. If the warning is unheeded, the user will be "kicked," i.e., kicked out of the communication channel to cool off.
24+
5. If the user comes back and continues to make trouble, they will be banned, i.e., indefinitely excluded.
25+
6. Moderators may choose at their discretion to un-ban the user if it was a first offense and they offer the offended party a genuine apology.
26+
7. If a moderator bans someone and you think it was unjustified, please take it up with that moderator, or with a different moderator, **in private**. Complaints about bans in-channel are not allowed.
27+
8. Moderators are held to a higher standard than other community members. If a moderator creates an inappropriate situation, they should expect less leeway than others.
28+
29+
In the Rust community we strive to go the extra step to look out for each other. Don't just aim to be technically unimpeachable, try to be your best self. In particular, avoid flirting with offensive or sensitive issues, particularly if they're off-topic; this all too often leads to unnecessary fights, hurt feelings, and damaged trust; worse, it can drive people away from the community entirely.
30+
31+
And if someone takes issue with something you said or did, resist the urge to be defensive. Just stop doing what it was they complained about and apologize. Even if you feel you were misinterpreted or unfairly accused, chances are good there was something you could've communicated better — remember that it's your responsibility to make your fellow Rustaceans comfortable. Everyone wants to get along and we are all here first and foremost because we want to talk about cool technology. You will find that people will be eager to assume good intent and forgive as long as you earn their trust.
32+
33+
The enforcement policies listed above apply to all official embedded WG venues; including official IRC channels (#rust-embedded); GitHub repositories under rust-embedded; and all forums under rust-embedded.org (forum.rust-embedded.org).
34+
35+
*Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).*
36+
37+
[team]: https://github.com/rust-embedded/wg#the-cortex-m-team

ci/before_deploy.ps1

Lines changed: 0 additions & 22 deletions
This file was deleted.

ci/before_deploy.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

ci/install.sh

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,7 @@
1-
set -ex
1+
set -euxo pipefail
22

33
main() {
4-
local target=
5-
if [ $TRAVIS_OS_NAME = linux ]; then
6-
target=x86_64-unknown-linux-musl
7-
sort=sort
8-
else
9-
target=x86_64-apple-darwin
10-
sort=gsort # for `sort --sort-version`, from brew's coreutils.
11-
fi
12-
13-
# Builds for iOS are done on OSX, but require the specific target to be
14-
# installed.
15-
case $TARGET in
16-
aarch64-apple-ios)
17-
rustup target install aarch64-apple-ios
18-
;;
19-
armv7-apple-ios)
20-
rustup target install armv7-apple-ios
21-
;;
22-
armv7s-apple-ios)
23-
rustup target install armv7s-apple-ios
24-
;;
25-
i386-apple-ios)
26-
rustup target install i386-apple-ios
27-
;;
28-
x86_64-apple-ios)
29-
rustup target install x86_64-apple-ios
30-
;;
31-
esac
32-
33-
# This fetches latest stable release
34-
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
35-
| cut -d/ -f3 \
36-
| grep -E '^v[0.1.0-9.]+$' \
37-
| $sort --version-sort \
38-
| tail -n1)
39-
curl -LSfs https://japaric.github.io/trust/install.sh | \
40-
sh -s -- \
41-
--force \
42-
--git japaric/cross \
43-
--tag $tag \
44-
--target $target
4+
true
455
}
466

477
main

ci/script.sh

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
# This script takes care of testing your crate
2-
3-
set -ex
1+
set -euxo pipefail
42

53
main() {
6-
cross check --target $TARGET
7-
8-
if [ ! -z $DISABLE_TESTS ]; then
9-
return
10-
fi
4+
cargo check --target $TARGET
115

12-
cross test --target $TARGET
13-
cross test --target $TARGET --release
6+
cargo test --target $TARGET
7+
cargo test --target $TARGET --release
148
}
159

16-
# we don't run the "test phase" when doing deploys
17-
if [ -z $TRAVIS_TAG ]; then
18-
main
19-
fi
10+
main

0 commit comments

Comments
 (0)