-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
133 lines (131 loc) · 3.92 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
language: python
python:
- 3.9
os:
- linux
cache:
apt: true
pip: false
directories:
- toolchain_riscv/install
- /opt/at14.0
timeout: 1000
dist: bionic
git:
submodules: false
addons:
apt:
packages:
- axel
- autoconf
- automake
- autotools-dev
- curl
- libmpc-dev
- libmpfr-dev
- libgmp-dev
- gawk
- build-essential
- bison
- flex
- texinfo
- gperf
- libtool
- patchutils
- bc
- zlib1g-dev
- graphviz
- shellcheck
- gcc-8-riscv64-linux-gnu
- gcc-riscv64-linux-gnu
- g++-8-riscv64-linux-gnu
- g++-riscv64-linux-gnu
stages:
- shell_conventions
- dependencies
- tests
jobs:
fast_finish: true
include:
- stage: shell_conventions
name: shell conventions
cache: false
script:
- set -e
- shellcheck -x -s sh bootstrap_environment.sh dev_tools/*/*.sh $(/bin/ls ./targets/*/dev_tools/*/*.sh)
- stage: dependencies
name: build toolchain gcc powerpc
script:
- set -e
- ./dev_tools/ci/install_advanced_toolchain.sh
- stage: tests
name: pycodestyle
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- ./dev_tools/ci/code_conventions_001_pycodestyle.sh
- stage: tests
name: pylint
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- ./dev_tools/ci/code_conventions_002_pylint.sh
- stage: tests
name: documentation
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- ./dev_tools/ci/code_conventions_003_documentation.sh
- stage: tests
name: mypy
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- ./dev_tools/ci/code_conventions_004_mypy.sh
- stage: tests
name: tools RISCV
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- MP_TESTING_ARCH=RISCV ./dev_tools/ci/test_001_end2end_tools.sh RISCV
- stage: tests
name: examples RISCV
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- MP_TESTING_ARCH=RISCV ./dev_tools/ci/test_002_end2end_examples.sh RISCV
- stage: tests
name: target RISCV
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- MP_TESTING_ARCH=RISCV ./dev_tools/ci/test_003_end2end_targets.sh RISCV
- stage: tests
name: tools POWER10
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- MP_TESTING_ARCH=POWER10 ./dev_tools/ci/test_001_end2end_tools.sh POWER10
- stage: tests
name: examples POWER10
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- MP_TESTING_ARCH=POWER10 ./dev_tools/ci/test_002_end2end_examples.sh POWER10
- stage: tests
name: target POWER10
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- MP_TESTING_ARCH=POWER10 ./dev_tools/ci/test_003_end2end_targets.sh POWER10
- stage: tests
name: build and test distribution
script:
- set -e
- . ./dev_tools/ci/travis_prolog
- ./dev_tools/ci/build_001_distribution.sh
- ./dev_tools/ci/test_deploy_001_install.sh ${TRAVIS_PYTHON_VERSION}
before_cache:
- rm -fr $HOME/.cache/pip
- rm -fr /home/travis/.cache/pip
- rm -fr /home/travis/build/rbertra/microprobe_private/.cache/pip