Skip to content

Commit d7773ac

Browse files
committed
Try #255:
2 parents 751ee92 + b7d533f commit d7773ac

File tree

7 files changed

+49
-128
lines changed

7 files changed

+49
-128
lines changed

.github/bors.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ delete_merged_branches = true
33
required_approvals = 1
44
status = [
55
"continuous-integration/travis-ci/push",
6-
"continuous-integration/appveyor/branch"
76
]
87
timeout_sec = 14400

.travis.yml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,46 @@ env:
1111
matrix:
1212
include:
1313
# Nightly, for testing
14-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Atmel
14+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Atmel
1515

16-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Freescale
16+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Freescale
1717

18-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Fujitsu
18+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Fujitsu
1919

20-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Holtek
20+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Holtek
2121

22-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Nordic
22+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Nordic
2323

24-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Nuvoton
24+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Nuvoton
2525

26-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=NXP
26+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=NXP
2727

28-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=SiliconLabs
28+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=SiliconLabs
2929

30-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Spansion
30+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Spansion
3131

32-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=STMicro
32+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=STMicro
3333

34-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Toshiba
34+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=Toshiba
3535

36-
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=OTHER
37-
rust: nightly
36+
# - env: TARGET=x86_64-unknown-linux-gnu VENDOR=OTHER
37+
# rust: nightly
3838

39-
# Linux
40-
- env: TARGET=i686-unknown-linux-gnu
41-
- env: TARGET=i686-unknown-linux-musl
42-
- env: TARGET=x86_64-unknown-linux-gnu
43-
- env: TARGET=x86_64-unknown-linux-musl
39+
# # Linux
40+
# - env: TARGET=i686-unknown-linux-gnu
41+
# - env: TARGET=i686-unknown-linux-musl
42+
# - env: TARGET=x86_64-unknown-linux-gnu
43+
# - env: TARGET=x86_64-unknown-linux-musl
4444

45-
# OSX
46-
- env: TARGET=i686-apple-darwin
47-
os: osx
48-
- env: TARGET=x86_64-apple-darwin
49-
os: osx
45+
# # OSX
46+
# - env: TARGET=i686-apple-darwin
47+
# os: osx
48+
# - env: TARGET=x86_64-apple-darwin
49+
# os: osx
50+
51+
# Windows
52+
- env: TARGET=x86_64-pc-windows-msvc
53+
os: windows
5054

5155
install:
5256
- bash ci/install.sh

appveyor.yml

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

ci/before_deploy.ps1

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

ci/before_deploy.sh

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
set -ex
1+
set -euxo pipefail
22

33
main() {
4-
local src=$(pwd) \
5-
stage=
4+
if [ $TARGET = x86_64-pc-windows-msvc ]; then
5+
cargo=cargo
6+
else
7+
cargo=cross
8+
fi
69

7-
case $TRAVIS_OS_NAME in
8-
linux)
9-
stage=$(mktemp -d)
10-
;;
11-
osx)
12-
stage=$(mktemp -d -t tmp)
13-
;;
14-
esac
10+
$cargo rustc --bin svd2rust --target $TARGET --release -- -C lto
1511

16-
cross rustc --bin svd2rust --target $TARGET --release -- -C lto
12+
rm -rf stage
13+
mkdir stage
14+
cp target/$TARGET/release/svd2rust stage
1715

18-
cp target/$TARGET/release/svd2rust $stage/
16+
pushd stage
17+
tar czf ../$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
18+
popd
1919

20-
cd $stage
21-
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
22-
cd $src
23-
24-
rm -rf $stage
20+
rm -rf stage
2521
}
2622

2723
main

ci/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ set -euxo pipefail
22

33
main() {
44
local sort=
5-
if [ $TRAVIS_OS_NAME = linux ]; then
5+
if [ $TRAVIS_OS_NAME = windows ]; then
6+
return
7+
elif [ $TRAVIS_OS_NAME = linux ]; then
68
sort=sort
79
else
810
sort=gsort

ci/script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ test_svd() {
2222
}
2323

2424
main() {
25+
if [ $TRAVIS_OS_NAME = windows ]; then
26+
cargo check --target $TARGET
27+
return
28+
fi
29+
2530
cross check --target $TARGET
2631

2732
if [ -z ${VENDOR-} ]; then

0 commit comments

Comments
 (0)