File tree 5 files changed +35
-3
lines changed
5 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ language: rust
2
2
3
3
matrix :
4
4
include :
5
+ - env : TARGET=x86_64-unknown-linux-gnu
6
+ rust : nightly
7
+ if : branch = master AND type != pull_request
8
+
5
9
- env : TARGET=thumbv6m-none-eabi
6
10
rust : nightly
7
11
if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
@@ -26,6 +30,9 @@ install:
26
30
script :
27
31
- bash ci/script.sh
28
32
33
+ after_success :
34
+ - bash ci/after-success.sh
35
+
29
36
after_script : set +e
30
37
31
38
cache : cargo
Original file line number Diff line number Diff line change 2
2
authors = [
" Jorge Aparicio <[email protected] >" ]
3
3
categories = [" embedded" , " no-std" ]
4
4
description = " A template for building applications for ARM Cortex-M microcontrollers"
5
+ documentation = " https://rust-embedded.github.io/cortex-m-quickstart/cortex_m_quickstart"
5
6
keywords = [" arm" , " cortex-m" , " template" ]
6
7
license = " MIT OR Apache-2.0"
7
8
name = " cortex-m-quickstart"
8
9
repository = " https://github.com/japaric/cortex-m-quickstart"
9
- version = " 0.3.3 "
10
+ version = " 0.3.4 "
10
11
11
12
[dependencies ]
12
13
cortex-m = " 0.5.6"
Original file line number Diff line number Diff line change
1
+ set -euxo pipefail
2
+
3
+ main () {
4
+ cargo doc
5
+
6
+ mkdir ghp-import
7
+
8
+ curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |
9
+ tar --strip-components 1 -C ghp-import -xz
10
+
11
+ ./ghp-import/ghp_import.py target/doc
12
+
13
+ set +x
14
+ git push -fq https://$GH_TOKEN @github.com/$TRAVIS_REPO_SLUG .git gh-pages && echo OK
15
+ }
16
+
17
+ # only publish on successful merges to master
18
+ if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && [ $TARGET = x86_64-unknown-linux-gnu ]; then
19
+ main
20
+ fi
Original file line number Diff line number Diff line change 1
1
set -euxo pipefail
2
2
3
3
main () {
4
- rustup target add $TARGET
4
+ if [ $TARGET != x86_64-unknown-linux-gnu ]; then
5
+ rustup target add $TARGET
6
+ fi
5
7
}
6
8
7
9
main
Original file line number Diff line number Diff line change 67
67
rm -rf $td
68
68
}
69
69
70
- main
70
+ if [ $TARGET != x86_64-unknown-linux-gnu ]; then
71
+ main
72
+ fi
You can’t perform that action at this time.
0 commit comments