summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 6d7e38c4cc818e169edb895657d1b8c3b2f6f598 (plain)
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
language: c

env:
  global:
    - TARGET_BOARD=odroidn2
    - TRAVIS_SECURE_ENV_VARS=true
    - ARCH=arm64
    - CROSS_COMPILE=aarch64-none-elf-

addons:
  apt:
    packages:

git:
  depth: 1

before_install:
  - if [ `uname -m` = x86_64 ]; then sudo apt-get install libc6-i386 lib32stdc++6 lib32z1; fi

install:

before_script:
  - mkdir -p /opt/toolchains
  - wget https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz
  - tar xf gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz -C /opt/toolchains
  - wget https://releases.linaro.org/archive/14.04/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz
  - tar xf gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz -C /opt/toolchains
  - export PATH=/opt/toolchains/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin:$PATH

script:
  - make ${TARGET_BOARD}_defconfig
  - make

before_deploy:
  - export RELEASE_VERSION="${TARGET_BOARD}-${TRAVIS_BUILD_NUMBER}"
  - tar czf u-boot-${RELEASE_VERSION}.tar.gz sd_fuse/u-boot.bin sd_fuse/sd_fusing.sh
  - git config --global user.name ${GIT_USER_NAME}
  - git config --global user.email ${GIT_USER_EMAIL}
  - export REMOTE_URL=`git config --get remote.origin.url`
  - export GIT_TAG="travis/${RELEASE_VERSION}"
  - git tag ${GIT_TAG} -a -m "Tagged by Travis CI"
  - git push --quiet https://${PRIVATE_ACCESS_TOKEN}@${REMOTE_URL#$"https://"} ${GIT_TAG}

deploy:
  provider: releases
  api_key:
    secure: ${PRIVATE_ACCESS_TOKEN}
  file_glob: true
  file: u-boot-${RELEASE_VERSION}.tar.gz
  skip_cleanup: true
  on:
    tags: false
    all_branches: true