.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Travis-CI file for Esp-Link
  2. language: c
  3. git:
  4. depth: 1000
  5. before_install:
  6. - curl -Ls http://s3.voneicken.com/xtensa-lx106-elf-20160330.tgx | tar Jxf -
  7. - curl -Ls http://s3.voneicken.com/esp_iot_sdk_v2.1.0.tgx | tar -C .. -Jxf -
  8. after_script:
  9. # upload to an S3 bucket, requires S3_BUCKET, AWS_ACCESS_KEY_ID and AWS_SECRET_KEY to be set
  10. # in environment using travis' repository settings
  11. - "if [[ -n \"$S3_BUCKET\" && -n \"$AWS_ACCESS_KEY_ID\" ]]; then
  12. echo Uploading *.tgz to $S3_BUCKET;
  13. curl -Ls https://github.com/rlmcpherson/s3gof3r/releases/download/v0.5.0/gof3r_0.5.0_linux_amd64.tar.gz | tar zxf - gof3r_0.5.0_linux_amd64/gof3r;
  14. mv gof3r*/gof3r .;
  15. ls *.tgz | xargs -I {} ./gof3r put -b $S3_BUCKET -k esp-link/{} --acl public-read -p {};
  16. ls *.tgz | xargs -I {} echo \"URL: http://$S3_BUCKET/esp-link/{}\";
  17. fi"
  18. compiler: gcc
  19. env:
  20. script:
  21. - export XTENSA_TOOLS_ROOT=$PWD/xtensa-lx106-elf/bin/
  22. - export BRANCH=$TRAVIS_BRANCH
  23. #- export SDK_BASE=$PWD/esp_iot_sdk_v2.0.0.p1
  24. - git tag -n1
  25. - git describe --tags --match 'v*.0' --long --debug
  26. - make release
  27. notifications:
  28. email: false