.travis.yml 914 B

12345678910111213141516
  1. language: c
  2. after_failure:
  3. - curl -v -H User-Agent:bot -H Content-Type:application/json -d '{"content":"**zpl** Latest build has FAILED!"}' https://discordapp.com/api/webhooks/$DISCORD_WEBHOOK_CHANNEL_ID/$DISCORD_WEBHOOK_TOKEN
  4. after_success:
  5. - curl -v -H User-Agent:bot -H Content-Type:application/json -d '{"content":"**zpl** Latest build has SUCCEEDED!"}' https://discordapp.com/api/webhooks/$DISCORD_WEBHOOK_CHANNEL_ID/$DISCORD_WEBHOOK_TOKEN
  6. script:
  7. - mkdir -p build
  8. - export INCLUDES="-Icode"
  9. - export LINKER="-pthread -lm -ldl"
  10. - gcc -g -std=c99 $INCLUDES test/build-test.c $LINKER -o build/test-gcc-c.o
  11. - clang -g -std=c99 $INCLUDES test/build-test.c $LINKER -o build/test-clang-c.o
  12. - g++ -g -std=c++11 $INCLUDES test/build-test.cpp $LINKER -o build/test-gpp-cpp.o
  13. - clang++ -g -std=c++11 $INCLUDES test/build-test.cpp $LINKER -o build/test-clang-cpp.o