forked from foss-for-synopsys-dwc-arc-processors/embarc_osp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (72 loc) · 2.61 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: python
python: 2.7
sudo: required
dist: trusty
env:
global:
- >
STATUS=$'curl -so/dev/null --user "$EMBARC_BOT" --request POST
https://api.github.com/repos/$TRAVIS_REPO_SLUG/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}
--data @- << DATA\n{
"state": "$0",
"description": "$1",
"context": "travis-ci/$NAME",
"target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
}\nDATA'
COMMENT=none
COMMENTS=$'curl -so/dev/null --user "$EMBARC_BOT" --request POST
https://api.github.com/repos/$TRAVIS_REPO_SLUG/issues/$TRAVIS_PULL_REQUEST/comments
--data @- << DATA\n{
"body": "$COMMENT"
}\nDATA'
- TOOLCHAIN_VER="latest"
- OSP_ROOT="."
- EXAMPLES="example/baremetal,example/freertos"
cache:
pip: true
directories:
- .cache/result
- .cache/toolchain
branches:
except:
- gh-pages
before_install:
- bash .ci/before_install.sh
# setup git config
- git config --global user.name "embARC Automated Bot"
- git config --global user.email "[email protected]"
after_success:
- bash -c "$STATUS" success "Local $NAME testing has passed"
after_failure:
- bash -c "$STATUS" failure "Local $NAME testing has failed"
script:
- bash .ci/script.sh
matrix:
include:
- env: NAME="sphinx_doc" TOOLCHAIN="sphinx" OSP_ROOT="none" TOOLCHAIN_VER="none"
os: linux
compiler: gcc
- env: NAME="emsk-11-gnu-latest" TOOLCHAIN="gnu" BOARD="emsk" BD_VER="11" EXPECTED=".ci/expected.ini" PARALLEL=8
os: linux
compiler: gcc
- env: NAME="emsk-22-gnu-latest" TOOLCHAIN="gnu" BOARD="emsk" BD_VER="22" EXPECTED=".ci/expected.ini" PARALLEL=8
os: linux
compiler: gcc
- env: NAME="baremetal-emsk-23-gnu-latest" TOOLCHAIN="gnu" BOARD="emsk" BD_VER="23" EXPECTED=".ci/expected.ini" PARALLEL=8 EXAMPLES="example/baremetal"
os: linux
compiler: gcc
- env: NAME="freertos-emsk-23-gnu-latest" TOOLCHAIN="gnu" BOARD="emsk" BD_VER="23" EXPECTED=".ci/expected.ini" PARALLEL=8 EXAMPLES="example/freertos"
os: linux
compiler: gcc
- env: NAME="hsdk-gnu-latest" TOOLCHAIN="gnu" BOARD="hsdk" EXPECTED=".ci/expected.ini"
os: linux
compiler: gcc
- env: NAME="iotdk-gnu-latest" TOOLCHAIN="gnu" BOARD="iotdk" EXPECTED=".ci/expected.ini"
os: linux
compiler: gcc
- env: NAME="nsim-gnu-latest" TOOLCHAIN="gnu" BOARD="nsim" EXPECTED=".ci/expected.ini"
os: linux
compiler: gcc
- env: NAME="emsdp-gnu-latest" TOOLCHAIN="gnu" BOARD="emsdp" EXPECTED=".ci/expected.ini"
os: linux
compiler: gcc