@@ -18,6 +18,7 @@ rust:
|
|||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
|||||||
@@ -13,17 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set -eu
|
set -eux
|
||||||
|
|
||||||
# Ensure we have the key_material.rs file before running the tests
|
|
||||||
if [ ! -f src/ctap/key_material.rs ]
|
|
||||||
then
|
|
||||||
echo "$(tput bold)ERROR:$(tput sgr0) Cannot find src/ctap/key_material.rs file."
|
|
||||||
echo "Please make sure that you have run the following script: ./setup.sh"
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
echo "Checking formatting..."
|
echo "Checking formatting..."
|
||||||
cargo fmt --all -- --check
|
cargo fmt --all -- --check
|
||||||
@@ -46,6 +36,8 @@ cargo check --release --target=thumbv7em-none-eabi --examples
|
|||||||
echo "Checking that CTAP2 builds and links properly (1 set of features)..."
|
echo "Checking that CTAP2 builds and links properly (1 set of features)..."
|
||||||
cargo build --release --target=thumbv7em-none-eabi --features with_ctap1
|
cargo build --release --target=thumbv7em-none-eabi --features with_ctap1
|
||||||
|
|
||||||
|
if [ -z "${TRAVIS_OS_NAME}" -o "${TRAVIS_OS_NAME}" = "linux" ]
|
||||||
|
then
|
||||||
echo "Running unit tests on the desktop (release mode)..."
|
echo "Running unit tests on the desktop (release mode)..."
|
||||||
cd libraries/cbor
|
cd libraries/cbor
|
||||||
cargo test --release --features std
|
cargo test --release --features std
|
||||||
@@ -69,4 +61,4 @@ cargo test --release --features std,with_ctap1
|
|||||||
|
|
||||||
echo "Running unit tests on the desktop (debug mode + CTAP1)..."
|
echo "Running unit tests on the desktop (debug mode + CTAP1)..."
|
||||||
cargo test --features std,with_ctap1
|
cargo test --features std,with_ctap1
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user