Skip to content

Commit

Permalink
another sed regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndTaleStudio committed Sep 11, 2020
1 parent 5cfd935 commit 1114111
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ matrix:
- rustup component add rust-src
- rustup component add llvm-tools-preview
# if we not build a PR we remove the patch of the dependencies to their github repo's
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/./{H;$!d} ; x ; s/^\[patch\.crates-io\].*//g" Cargo.toml; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/^\[patch\.crates-io\]$/ {N; s/^.*//g}" Cargo.toml" Cargo.toml; fi'
script: cargo make --profile a64-travis pi3

- name: "build 32Bit"
Expand All @@ -34,19 +34,19 @@ matrix:
- rustup component add rust-src
- rustup component add llvm-tools-preview
# if we not build a PR we remove the patch of the dependencies to their github repo's
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/./{H;$!d} ; x ; s/^\[patch\.crates-io\].*//g" Cargo.toml; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/^\[patch\.crates-io\]$/ {N; s/^.*//g}" Cargo.toml" Cargo.toml; fi'
script: cargo make --profile a32 pi3

- name: "unit tests"
install:
# if we not build a PR we remove the patch of the dependencies to their github repo's
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/./{H;$!d} ; x ; s/^\[patch\.crates-io\].*//g" Cargo.toml; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/^\[patch\.crates-io\]$/ {N; s/^.*//g}" Cargo.toml" Cargo.toml; fi'
script: cargo test --tests

- name: "doc tests"
install:
# if we not build a PR we remove the patch of the dependencies to their github repo's
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/./{H;$!d} ; x ; s/^\[patch\.crates-io\].*//g" Cargo.toml; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sed -i "/^\[patch\.crates-io\]$/ {N; s/^.*//g}" Cargo.toml" Cargo.toml; fi'
- cat Cargo.toml
script: cargo test --doc

Expand Down

0 comments on commit 1114111

Please sign in to comment.