surwiki/.travis.yml

30 lines
585 B
YAML
Raw Permalink Normal View History

2017-08-21 17:08:22 +03:00
language: rust
rust:
2017-09-22 17:40:49 +03:00
- stable
- beta
- nightly
2017-08-21 17:08:22 +03:00
2023-09-27 19:40:14 +03:00
arch:
- amd64
- arm64
2017-08-21 17:08:22 +03:00
matrix:
allow_failures:
- rust: nightly
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y musl-tools
script:
2023-09-27 19:40:14 +03:00
- TARGET=`[ $TRAVIS_CPU_ARCH == 'amd64' ] && echo x86_64 || echo aarch64`-unknown-linux-musl
- rustup target add $TARGET
- cargo test --target=$TARGET
- cargo build --release --target=$TARGET
- strip -s target/$TARGET/release/sausagewiki
- XZ_OPT=-9 tar Jcf sausagewiki-$TRAVIS_CPU_ARCH.tar.xz -C target/$TARGET/release/ sausagewiki
branches:
except:
- "/^untagged-/"