forked from espruino/Espruino
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
67 lines (59 loc) · 1.89 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Travis-CI file for Espruino
language: c
# Maybe someday when travis-ci authorizes the ppa:
# https://github.com/travis-ci/apt-source-whitelist/issues/132
#sudo: false
#addon:
# apt:
# sources:
# - ppa:terry.guo/gcc-arm-embedded
# packages:
# - libsdl1.2-dev gcc-arm-none-eabi
before_install:
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
- sudo apt-get update
- sudo apt-get install libsdl1.2-dev gcc-arm-none-eabi
- curl -Ls http://s3.voneicken.com/xtensa-lx106-elf.tgx | tar Jxf -
- curl -Ls http://s3.voneicken.com/esp_iot_sdk_v1.5.0.tgx | tar Jxf -
before_script:
- arm-none-eabi-gcc --version
after_script:
- ls *.bin *.hex *.tgz | xargs -I {} curl -v -F "binary=@{}" "http://www.espruino.com/travis_upload.php?commit=$TRAVIS_COMMIT"
# upload to an S3 bucket, requires S3_BUCKET, AWS_ACCESS_KEY_ID and AWS_SECRET_KEY to be set
# in environment using travis' repository settings
- "if [[ -n \"$S3_BUCKET\" && -n \"$AWS_ACCESS_KEY_ID\" ]]; then
echo Uploading *.tgz to $S3_BUCKET;
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;
mv gof3r*/gof3r .;
ls *.tgz | xargs -I {} ./gof3r put -b $S3_BUCKET -k espruino/{} --acl public-read -p {};
fi"
compiler:
- gcc
env:
global:
- RELEASE=1
- TRAVIS=1
- V=0
- ESP8266_SDK_ROOT=$TRAVIS_BUILD_DIR/esp_iot_sdk_v1.5.0
- PATH=$PATH:$TRAVIS_BUILD_DIR/xtensa-lx106-elf/bin/
matrix:
- ESP8266_BOARD=1
- ESPRUINO_1V3=1
- PICO_1V3=1
- MICROBIT=1
- OLIMEXINO_STM32=1
- MAPLERET6_STM32=1
- HYSTM32_24=1
- HYSTM32_28=1
- HYSTM32_32=1
- STM32VLDISCOVERY=1
- STM32F3DISCOVERY=1
- STM32F4DISCOVERY=1
- NUCLEOF401RE=1
- NUCLEOF411RE=1
- LCTECH_STM32F103RBT6=1
- LINUX_BUILD=1
- EFM32GGSTK=1
script: make
notifications:
email: false