4 Star 11 Fork 6

HarmonyHub / OpenHarmony_AWS_IoT

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
language: c
install:
# Remove placeholders.
- rm external_libs/CppUTest/*
- rm external_libs/mbedTLS/*
# Get mbedtls.
- wget -qO- https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.16.5.tar.gz | tar xvz -C external_libs/mbedTLS --strip-components=1
# Get CppUTest.
- wget -qO- https://github.com/cpputest/cpputest/archive/v3.6.tar.gz | tar xvz -C external_libs/CppUTest --strip-components=1
script:
# Verify that the samples build.
- cd samples/linux/jobs_sample
- make -j2
- cd ../shadow_sample
- make -j2
- cd ../shadow_sample_console_echo
- make -j2
- cd ../subscribe_publish_library_sample
- make -j2
- cd ../subscribe_publish_sample
- make -j2
# Build and run unit tests.
- cd ../../../
- make build-cpputest -j2
- make all_no_tests -j2
- ./IotSdkC_tests -v
# Set up integration tests if not a pull request.
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd tests/integration; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sed -i 's/^.*#define AWS_IOT_MQTT_HOST.*$/#define AWS_IOT_MQTT_HOST "'"$AWS_IOT_ENDPOINT"'"/' include/aws_iot_config.h; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then make app -j2; fi
# Import credentials for integration tests.
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget https://www.amazontrust.com/repository/AmazonRootCA1.pem -O ../../certs/rootCA.crt; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo -e $AWS_IOT_CLIENT_CERT > ../../certs/cert.pem; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo -e $AWS_IOT_PRIVATE_KEY > ../../certs/privkey.pem; fi
# Run integration tests.
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./integration_tests_mbedtls; fi
C
1
https://gitee.com/harmonyhub/harmony-aws-iot.git
git@gitee.com:harmonyhub/harmony-aws-iot.git
harmonyhub
harmony-aws-iot
OpenHarmony_AWS_IoT
master

搜索帮助