3 Star 8 Fork 0

HarmonyHub / Harmony_AWS_IoT

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
.travis.yml 1.66 KB
Copy Edit Web IDE Raw Blame History
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

Comment ( 0 )

Sign in for post a comment

C
1
https://gitee.com/harmonyhub/harmony-aws-iot.git
git@gitee.com:harmonyhub/harmony-aws-iot.git
harmonyhub
harmony-aws-iot
Harmony_AWS_IoT
master

Search