mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-20 01:50:24 -05:00
build and lint the UI in travis-ci
This is a separate item in the matrix, so it doesn't go through this for each of the three Rust versions.
This commit is contained in:
13
ci/install-ffmpeg.sh
Executable file
13
ci/install-ffmpeg.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash -e
|
||||
if [ ! -f ffmpeg-${FFMPEG_VERSION}/configure ]; then
|
||||
wget https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.xz
|
||||
tar xf ffmpeg-${FFMPEG_VERSION}.tar.xz
|
||||
fi
|
||||
cd ffmpeg-${FFMPEG_VERSION}
|
||||
./configure --enable-shared
|
||||
make --jobs=2
|
||||
sudo make install --jobs=2
|
||||
sudo ldconfig
|
||||
|
||||
# The build log varies with each invocation; remove it to improve cachability.
|
||||
rm -f ffbuild/config.log
|
||||
6
ci/script-rust.sh
Executable file
6
ci/script-rust.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
cargo build --all
|
||||
cargo test --all
|
||||
if [ "$TRAVIS_RUST_VERSION" = nightly ]; then
|
||||
cargo bench --all
|
||||
fi
|
||||
Reference in New Issue
Block a user