-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
76 lines (67 loc) · 2.28 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
68
69
70
71
72
73
74
75
76
language: cpp
sudo: required
dist: trusty
compiler: gcc
os: linux
branches:
only: master
#addons:
# apt:
# config:
# retries: true
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - gcc-8
# - g++-8
# - wget
cache:
directories:
- /home/travis/avr-gcc/
- /home/travis/output/
git:
depth: 1
env:
global:
# - LANG="fr_FR.UTF-8"
- LANG="en_US.UTF-8"
- JOBCOUNT=2
- VER_BINUTILS="2.31.1"
- VER_GCC="8.2.0"
- VER_LIBC="2.0.0"
- PREFIX=/home/travis/avr-gcc
- OUTPUT=/home/travis/output
before_install:
- echo $TRAVIS_BUILD_DIR && echo $HOME && pwd
- df -h
# - export CC="gcc-8" CXX="g++-8"
- unset CC CXX
- export BINUTILS="binutils-${VER_BINUTILS}" GCC="gcc-${VER_GCC}" AVR_LIBC="avr-libc-${VER_LIBC}"
- export PATH="$PATH":$PREFIX/bin RELEASE=$OUTPUT/avr-${GCC}.tar.bz2
- git config --local user.name "INARES"
- git config --local user.email "[email protected]"
- git tag avr-${GCC}
- mkdir -p $OUTPUT
script:
- time sh build_binutils.sh
- travis_wait 60 time sh build_gcc.sh
- time sh build_avr-libc.sh
- cd $TRAVIS_BUILD_DIR/test
- ls -alh
- make && ls -alh || true
- cd ..
before_deploy:
- if [ ! -f "$RELEASE" ]; then echo -e "\n*** Creating archive file with avr-${GCC} ***" && cd $PREFIX/.. && tar -cjf $RELEASE avr-gcc && ls -lh $RELEASE ; fi
# https://docs.travis-ci.com/user/deployment/releases/
deploy:
provider: releases
api_key:
secure: cRBCrb3WGpu4OfVgbU9vXpYWdd+ONsGZvAu6TK7gA7JJFFSPyfNyFXMZnNWM4P6qfSMnbqMPTGt7cV3Kozu0PyE9PYMsqGYWLrJLvqX4Wg5pGO2KIhzunEkRUt+5G9aeBAj34wHwHZ9CZjU9T5spVZ0KDHrCo1NdDWqtezVe3h8F49d5sx8koU66VVRNXeDt17emDdZNvAgbHfpTQ0U95VTDP/DBD1YY8OG2FK9MVwBCSBWhv9MHBg7L8jUlnB6vsJbkv3ll0ROivc2qkgjeeWIeLuARJISl2SaBqk/jFx6FO8ihVrsX9854mft6d6uqqEcQFbraN7b6QFOEs8Iqy7RsAJzZQiJYRh6QApEhZB+hrVw/vrxHQpExCCs4vN7VCVKIiwDtghb2BpDXcAudc9EUV51J8jfZ2rHZ7Nvk0Wb4F1yHJmlYBJ3y8iEm4WrRfQ9j4oZa1JQbMdbniU4C9k/aZscpd0Fz9b1V8XoTa8KHITyqizX7Wx3xN24mgs/3tp507O9JO6C321sjplMnyU0zgCZ98kXukeDLnXEPSS+UpCOzF4BRfw16MibnY85vGbQyilNZd5D7GgzxMu/sGkzilJSm+cUWEIdfXv2hRzh9W9z4fDhcnEcy8YlmC4+wIRJJupYRJQRv3cdBnb5tgtdtccPhOrKwIWxav2sC0/E=
file: $RELEASE
skip_cleanup: true
overwrite: true
after_script:
- ls -alhR $PREFIX/
- ls -alh $OUTPUT
- cd $OUTPUT && du -h --max-depth=1
- cd $PREFIX && du -h --max-depth=1