forked from alibaba/AliOS-Things
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 3.57 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
language: python
python:
- '2.7'
sudo: false
addons:
apt:
update: true
env:
matrix:
- |-
TOOLCHAIN_DIR="${HOME}/toolchain"
ARM_TOOLCHAIN_URL="https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2"
ARM_BINDIR="${TOOLCHAIN_DIR}/gcc-arm-none-eabi/bin"
ESP8266_TOOLCHAIN_URL="http://arduino.esp8266.com/linux64-xtensa-lx106-elf.tar.gz"
ESP8266_BINDIR="${TOOLCHAIN_DIR}/xtensa-lx106-elf/bin"
ESP32_TOOLCHAIN_URL="https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz"
ESP32_BINDIR="${TOOLCHAIN_DIR}/xtensa-esp32-elf/bin"
CSKY_TOOLCHAIN_URL="https://github.com/aliosthings/gcc-csky-abiv2-linux.git"
CSKY_BINDIR="${TOOLCHAIN_DIR}/gcc-csky-abiv2-elf/main/bin"
PATH="${PATH}:${ARM_BINDIR}:${ESP8266_BINDIR}:${ESP32_BINDIR}:${CSKY_BINDIR}"
global:
- secure: h4xzPrWIwRbdOTxq1jTzAd8aFM7LLrmCvGyDcQqbccBbGkVOvTJ7+CC936G4OkkouO/m6bPKrTlK8DVBQI/b1mvKHFQYAnjyZeo9dl6ofNgHYMfYxnuhBSjQHzDYnsuS+Qa2xVIwOXgeyxZJh68YLRRvDWbtQ/3seWacSDNEVY6ZN+KmPn3CFIFozDdj5x+lN1mOBbvdQ1rtgSSak2ykiCCj9fqquGEJjo0a3C5C389B+dYW+A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qgFIYLboRVTePz4MZQIzCu9uBuPm437IzNAc=
before_install:
- sudo apt purge oracle-java8-installer oracle-java9-installer
- sudo apt autoremove
- sudo apt install -qq scons
- sudo apt install -qq gcc-multilib
- sudo apt install -qq libssl-dev libssl-dev:i386
- sudo apt install -qq libncurses5-dev libncurses5-dev:i386
- sudo apt install -qq libreadline-dev libreadline-dev:i386
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60
install:
- pwd
- cd ${HOME}
- mkdir -p ${TOOLCHAIN_DIR}
- wget ${ARM_TOOLCHAIN_URL} -O gcc-arm-none-eabi.tar.bz2
- tar xaf gcc-arm-none-eabi.tar.bz2 && mv gcc-arm-none-eabi-5_4-2016q3 ${TOOLCHAIN_DIR}/gcc-arm-none-eabi
- wget ${ESP8266_TOOLCHAIN_URL} -O linux64-xtensa-lx106-elf.tar.gz
- tar xaf linux64-xtensa-lx106-elf.tar.gz -C ${TOOLCHAIN_DIR}
- wget ${ESP32_TOOLCHAIN_URL} -O xtensa-esp32-elf-linux64.tar.gz
- tar xaf xtensa-esp32-elf-linux64.tar.gz -C ${TOOLCHAIN_DIR}
- git clone ${CSKY_TOOLCHAIN_URL} ${TOOLCHAIN_DIR}/gcc-csky-abiv2-elf
- pip install aos-cube
before_script:
- cd ${TRAVIS_BUILD_DIR}
- echo "export PATH=""${PATH}" >> ~/.bashrc
- echo ${TRAVIS_COMMIT}
- echo ${TRAVIS_PULL_REQUEST}
- echo ${TRAVIS_JOB_NUMBER}
script:
- bash ./build/autobuild.sh
- bash ./tools/ci/pvbuild.sh
- ls -lh ./prebuild
after_success:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then DIRNAME=push MARK=push; else DIRNAME=pr
MARK=${TRAVIS_PULL_REQUEST}; fi