File tree Expand file tree Collapse file tree 3 files changed +22
-30
lines changed Expand file tree Collapse file tree 3 files changed +22
-30
lines changed Original file line number Diff line number Diff line change 13
13
14
14
if : (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
15
15
16
- before_install : set -e
17
-
18
16
install :
19
- - bash ci/install.sh
20
- - export PATH="$PATH:$PWD/gcc/bin"
17
+ - ci/install.sh
21
18
22
19
script :
23
- - bash ci/script.sh
24
-
25
- after_script : set +e
20
+ - ci/script.sh
26
21
27
22
cache : cargo
28
23
Original file line number Diff line number Diff line change 1
- set -euxo pipefail
1
+ #! /usr/bin/env bash
2
2
3
- main () {
4
- if [ $TARGET != x86_64-unknown-linux-gnu ]; then
5
- rustup target add $TARGET
6
- fi
3
+ set -euxo pipefail
7
4
8
- mkdir gcc
9
- curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
10
- }
5
+ if [ $TARGET != x86_64-unknown-linux-gnu ] ; then
6
+ rustup target add $TARGET
7
+ fi
11
8
12
- main
9
+ mkdir gcc
10
+ curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
Original file line number Diff line number Diff line change 1
- set -euxo pipefail
1
+ #! /usr/bin/env bash
2
2
3
- main () {
4
- cargo check --target $TARGET
5
- if [[ $TARGET == riscv* ]]; then
6
- cargo check --target $TARGET --examples
7
- fi
3
+ set -euxo pipefail
8
4
9
- if [ $TRAVIS_RUST_VERSION = nightly ]; then
10
- cargo check --target $TARGET --features ' inline-asm'
11
- fi
5
+ cargo check --target $TARGET
6
+ if [[ $TARGET == riscv* ]]; then
7
+ cargo check --target $TARGET --examples
8
+ fi
12
9
13
- if [ $TARGET = x86_64-unknown-linux-gnu ]; then
14
- ./check-blobs.sh
15
- fi
16
- }
10
+ if [ $TRAVIS_RUST_VERSION = nightly ]; then
11
+ cargo check --target $TARGET --features ' inline-asm'
12
+ fi
17
13
18
- main
14
+ if [ $TARGET = x86_64-unknown-linux-gnu ]; then
15
+ PATH=" $PATH :$PWD /gcc/bin"
16
+ ./check-blobs.sh
17
+ fi
You can’t perform that action at this time.
0 commit comments