# One may have a look at http://docs.travis-ci.com/user/installing-dependencies/ language: c notifications: - email: true sudo: false cache: ccache before_install: # Install the cross compilers - wget http://releases.linaro.org/15.02/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf.tar.xz - tar xf gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf.tar.xz - export PATH=${PWD}/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin:${PATH} - arm-linux-gnueabihf-gcc --version - wget http://releases.linaro.org/15.02/components/toolchain/binaries/aarch64-linux-gnu/gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu.tar.xz - tar xf gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu.tar.xz - export PATH=${PWD}/gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu/bin:${PATH} - aarch64-linux-gnu-gcc --version before_script: # Store the home repository - export MYHOME=$PWD # Download checkpatch.pl - export DST_KERNEL=$PWD/linux && mkdir -p $DST_KERNEL/scripts && cd $DST_KERNEL/scripts - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl && chmod a+x checkpatch.pl - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt - cd $MYHOME # Tools required for QEMU tests # 'apt-get install' cannot be used in the new container-based infrastructure # (which is the only allowing caching), so we just build from sources # bc is used during kernel configuration - cd $HOME - wget http://ftp.gnu.org/gnu/bc/bc-1.06.tar.gz - tar xf bc-1.06.tar.gz - (cd bc-1.06 && CC="ccache gcc" ./configure --quiet && make -j4) - export PATH=${HOME}/bc-1.06/bc:$PATH # Tcl/Expect - wget http://prdownloads.sourceforge.net/tcl/tcl8.6.4-src.tar.gz - tar xf tcl8.6.4-src.tar.gz - (cd tcl8.6.4/unix && ./configure --quiet --prefix=${HOME}/inst CC="ccache gcc" && make -j4 install) - wget http://sourceforge.net/projects/expect/files/Expect/5.45/expect5.45.tar.gz/download -O expect5.45.tar.gz - tar xf expect5.45.tar.gz - (cd expect5.45 && ./configure --quiet --with-tcl=${HOME}/inst/lib --prefix=${HOME}/inst CC="ccache gcc" && make -j4 expect && make -j4 install) - export PATH=$HOME/inst/bin:$PATH # pycrypto 2.6.1 or later has Crypto.Signature, 2.4.1 does not. It is needed to sign the test TAs. - pip install --upgrade --user pycrypto # Clone repositories for the QEMU test environment - mkdir $HOME/bin - (cd $HOME/bin && wget https://storage.googleapis.com/git-repo-downloads/repo && chmod +x repo) - export PATH=$HOME/bin:$PATH - mkdir $HOME/optee_repo - (cd $HOME/optee_repo && repo init -u https://github.com/OP-TEE/manifest.git