Skip to content

Commit c221b22

Browse files
author
Abbas Bracken Ziad
authored
Add Cellular example to CircleCI (#211)
* Delete .travis.yml * Delete Jenkinsfile * Add .circleci/config.yml * temporarily disable cmake
1 parent 8534c91 commit c221b22

File tree

3 files changed

+102
-282
lines changed

3 files changed

+102
-282
lines changed

.circleci/config.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
2+
#
3+
# Check https://circleci.com/docs/2.0/language-python/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
prepare:
8+
docker:
9+
- image: mbedos/mbed-os-env:latest
10+
working_directory: ~
11+
steps:
12+
- checkout:
13+
path: mbed-os-example-cellular
14+
- run: |
15+
cd mbed-os-example-cellular
16+
mbed deploy
17+
- persist_to_workspace:
18+
root: /root/project
19+
paths: mbed-os-example-cellular
20+
21+
build_disco_l496ag:
22+
docker:
23+
- image: mbedos/mbed-os-env:stable
24+
working_directory: ~
25+
steps:
26+
- attach_workspace:
27+
at: /root/project
28+
- run: |
29+
cd mbed-os-example-cellular
30+
mbed compile -t GCC_ARM -m DISCO_l496AG || exit 1
31+
32+
build_wio_3g:
33+
docker:
34+
- image: mbedos/mbed-os-env:stable
35+
working_directory: ~
36+
steps:
37+
- attach_workspace:
38+
at: /root/project
39+
- run: |
40+
cd mbed-os-example-cellular
41+
mbed compile -t GCC_ARM -m WIO_3G || exit 1
42+
43+
cmake_nrf52840_dk:
44+
docker:
45+
- image: mbedos/mbed-os-env:latest
46+
working_directory: ~
47+
steps:
48+
- attach_workspace:
49+
at: /root/project
50+
- run: |
51+
python3 -m pip install mbed-tools --upgrade # remove after docker image is updated to contain new tools
52+
cd mbed-os-example-cellular
53+
mbed-tools compile -t GCC_ARM -m NRF52840_DK || exit 1
54+
mbed-tools compile -t ARM -m NRF52840_DK || exit 1
55+
56+
cmake_disco_l496ag:
57+
docker:
58+
- image: mbedos/mbed-os-env:latest
59+
working_directory: ~
60+
steps:
61+
- attach_workspace:
62+
at: /root/project
63+
- run: |
64+
python3 -m pip install mbed-tools --upgrade # remove after docker image is updated to contain new tools
65+
cd mbed-os-example-cellular
66+
mbed-tools compile -t GCC_ARM -m DISCO_l496AG || exit 1
67+
mbed-tools compile -t ARM -m DISCO_l496AG || exit 1
68+
69+
cmake_wio_3g:
70+
docker:
71+
- image: mbedos/mbed-os-env:latest
72+
working_directory: ~
73+
steps:
74+
- attach_workspace:
75+
at: /root/project
76+
- run: |
77+
python3 -m pip install mbed-tools --upgrade # remove after docker image is updated to contain new tools
78+
cd mbed-os-example-cellular
79+
mbed-tools compile -t GCC_ARM -m WIO_3G || exit 1
80+
mbed-tools compile -t ARM -m WIO_3G || exit 1
81+
82+
workflows:
83+
version: 2
84+
workflow:
85+
jobs:
86+
- prepare
87+
- build_disco_l496ag:
88+
requires:
89+
- prepare
90+
- build_wio_3g:
91+
requires:
92+
- prepare
93+
# disabled until cmake filelist is fixed in mbed-os
94+
#- cmake_nrf52840_dk:
95+
# requires:
96+
# - prepare
97+
#- cmake_disco_l496ag:
98+
# requires:
99+
# - prepare
100+
#- cmake_wio_3g:
101+
# requires:
102+
# - prepare

.travis.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

Jenkinsfile

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)