|
| 1 | +version: 2 |
| 2 | +jobs: |
| 3 | + py2: |
| 4 | + machine: true |
| 5 | + steps: |
| 6 | + - run: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded |
| 7 | + - run: sudo apt-get -y update |
| 8 | + - run: sudo apt-get -y install gcc-arm-none-eabi=4.9.3.2015q3-1trusty1 |
| 9 | + - run: python --version |
| 10 | + - run: pip --version |
| 11 | + - run: pip install pytest future |
| 12 | + - run: git config --global user.email "test@mbed.org" |
| 13 | + - run: git config --global user.name "mbed Test" |
| 14 | + - run: echo -e "[ui]\nusername = mbed Test <test@mbed.org>\n" > ~/.hgrc |
| 15 | + - checkout |
| 16 | + - run: pip install -e ./ |
| 17 | + - run: mbed --version |
| 18 | + - run: py.test test |
| 19 | + - run: mbed toolchain -G GCC_ARM |
| 20 | + - run: mbed target -G K64F |
| 21 | + - run: mbed config -G protocol ssh |
| 22 | + - run: mkdir .tests |
| 23 | + - run: cd .tests && mbed new new-test |
| 24 | + - run: cd .tests/new-test && mbed ls |
| 25 | + - run: cd .tests/new-test && mbed releases -r |
| 26 | + - run: cd .tests/new-test && mbed compile --source=. --source=mbed-os/TESTS/integration/basic -j 0 |
| 27 | + - run: cd .tests/new-test && mbed test --compile -n mbed-os-tests-integration-basic -j 0 |
| 28 | + - run: cd .tests && mbed import https://developer.mbed.org/teams/Morpheus/code/mbed-Client-Morpheus-hg hg-test |
| 29 | + - run: cd .tests/hg-test && mbed ls |
| 30 | + - run: cd .tests/hg-test && mbed releases -r |
| 31 | + - run: cd .tests/hg-test && mbed update b02527cafcde8612ff051fea57e9975aca598807 --clean |
| 32 | + - run: cd .tests/hg-test && mbed update --clean |
| 33 | + - run: cd .tests/hg-test && mbed compile -j 0 |
| 34 | + - run: cd .tests && mbed import https://developer.mbed.org/users/samux/code/USBSerial_HelloWorld bld-test |
| 35 | + - run: cd .tests/bld-test && mbed ls |
| 36 | + - run: cd .tests/bld-test && mbed releases -r |
| 37 | + - run: cd .tests/bld-test/mbed && mbed update 85 --clean |
| 38 | + - run: cd .tests/bld-test && mbed update --clean |
| 39 | + - run: cd .tests/bld-test && mbed compile -m LPC1768 -j 0 |
| 40 | + - run: cd .tests && mbed new supported-tests |
| 41 | + - run: |- |
| 42 | + cd .tests/supported-tests |
| 43 | + echo "Testing mbed-os-5.6.0" |
| 44 | + mbed update --clean "mbed-os-5.6.0" |
| 45 | + mbed compile -S |
| 46 | + mbed toolchain -S |
| 47 | + mbed target -S |
| 48 | + mbed export -S |
| 49 | + - run: |- |
| 50 | + cd .tests/supported-tests |
| 51 | + echo "Testing mbed-os-5.5.0" |
| 52 | + mbed update --clean "mbed-os-5.5.0" |
| 53 | + mbed compile -S |
| 54 | + mbed toolchain -S |
| 55 | + mbed target -S |
| 56 | + mbed export -S |
| 57 | + - run: |- |
| 58 | + cd .tests/supported-tests |
| 59 | + echo "Testing mbed-os-5.4.0" |
| 60 | + mbed update --clean "mbed-os-5.4.0" |
| 61 | + mbed compile -S |
| 62 | + mbed toolchain -S |
| 63 | + mbed target -S |
| 64 | + mbed export -S |
| 65 | + - run: |- |
| 66 | + cd .tests/supported-tests |
| 67 | + echo "Testing mbed-os-5.3.0" |
| 68 | + mbed update --clean "mbed-os-5.3.0" |
| 69 | + mbed compile -S |
| 70 | + mbed toolchain -S |
| 71 | + mbed target -S |
| 72 | + mbed export -S |
| 73 | + - run: |- |
| 74 | + cd .tests/supported-tests |
| 75 | + echo "Testing mbed-os-5.2.0" |
| 76 | + mbed update --clean "mbed-os-5.2.0" |
| 77 | + mbed compile -S |
| 78 | + mbed toolchain -S |
| 79 | + mbed target -S |
| 80 | + mbed export -S |
| 81 | + - run: |- |
| 82 | + cd .tests/supported-tests |
| 83 | + echo "Testing mbed-os-5.1.0" |
| 84 | + mbed update --clean "mbed-os-5.1.0" |
| 85 | + mbed compile -S |
| 86 | + mbed toolchain -S |
| 87 | + mbed target -S |
| 88 | + mbed export -S |
| 89 | +
|
| 90 | + py3: |
| 91 | + machine: true |
| 92 | + steps: |
| 93 | + - run: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded |
| 94 | + - run: sudo apt-get -y update |
| 95 | + - run: sudo apt-get -y install gcc-arm-none-eabi=4.9.3.2015q3-1trusty1 |
| 96 | + - run: pyenv install 3.6.0 |
| 97 | + - run: pyenv global 3.6.0 |
| 98 | + - run: python --version |
| 99 | + - run: pip --version |
| 100 | + - run: pip install pytest future |
| 101 | + - run: git config --global user.email "test@mbed.org" |
| 102 | + - run: git config --global user.name "mbed Test" |
| 103 | + - run: echo -e "[ui]\nusername = mbed Test <test@mbed.org>\n" > ~/.hgrc |
| 104 | + - checkout |
| 105 | + - run: pip install -e ./ |
| 106 | + - run: mbed --version |
| 107 | + - run: py.test test |
| 108 | + - run: mbed toolchain -G GCC_ARM |
| 109 | + - run: mbed target -G K64F |
| 110 | + - run: mbed config -G protocol ssh |
| 111 | + - run: mkdir .tests |
| 112 | + - run: cd .tests && mbed new new-test |
| 113 | + - run: cd .tests/new-test && mbed ls |
| 114 | + - run: cd .tests/new-test && mbed releases -r |
| 115 | + - run: cd .tests/new-test && mbed compile --source=. --source=mbed-os/TESTS/integration/basic -j 0 |
| 116 | + - run: cd .tests/new-test && mbed test --compile -n mbed-os-tests-integration-basic -j 0 |
| 117 | + - run: cd .tests && mbed import https://developer.mbed.org/teams/Morpheus/code/mbed-Client-Morpheus-hg hg-test |
| 118 | + - run: cd .tests/hg-test && mbed ls |
| 119 | + - run: cd .tests/hg-test && mbed releases -r |
| 120 | + - run: cd .tests/hg-test && mbed update b02527cafcde8612ff051fea57e9975aca598807 --clean |
| 121 | + - run: cd .tests/hg-test && mbed update --clean |
| 122 | + - run: cd .tests/hg-test && mbed compile -j 0 |
| 123 | + - run: cd .tests && mbed import https://developer.mbed.org/users/samux/code/USBSerial_HelloWorld bld-test |
| 124 | + - run: cd .tests/bld-test && mbed ls |
| 125 | + - run: cd .tests/bld-test && mbed releases -r |
| 126 | + - run: cd .tests/bld-test/mbed && mbed update 85 --clean |
| 127 | + - run: cd .tests/bld-test && mbed update --clean |
| 128 | + - run: cd .tests/bld-test && mbed compile -m LPC1768 -j 0 |
| 129 | + - run: cd .tests && mbed new supported-tests |
| 130 | + - run: |- |
| 131 | + cd .tests/supported-tests |
| 132 | + echo "Testing mbed-os-5.6.0" |
| 133 | + mbed update --clean "mbed-os-5.6.0" |
| 134 | + mbed compile -S |
| 135 | + mbed toolchain -S |
| 136 | + mbed target -S |
| 137 | + mbed export -S |
| 138 | + - run: |- |
| 139 | + cd .tests/supported-tests |
| 140 | + echo "Testing mbed-os-5.5.0" |
| 141 | + mbed update --clean "mbed-os-5.5.0" |
| 142 | + mbed compile -S |
| 143 | + mbed toolchain -S |
| 144 | + mbed target -S |
| 145 | + mbed export -S |
| 146 | + - run: |- |
| 147 | + cd .tests/supported-tests |
| 148 | + echo "Testing mbed-os-5.4.0" |
| 149 | + mbed update --clean "mbed-os-5.4.0" |
| 150 | + mbed compile -S |
| 151 | + mbed toolchain -S |
| 152 | + mbed target -S |
| 153 | + mbed export -S |
| 154 | + - run: |- |
| 155 | + cd .tests/supported-tests |
| 156 | + echo "Testing mbed-os-5.3.0" |
| 157 | + mbed update --clean "mbed-os-5.3.0" |
| 158 | + mbed compile -S |
| 159 | + mbed toolchain -S |
| 160 | + mbed target -S |
| 161 | + mbed export -S |
| 162 | + - run: |- |
| 163 | + cd .tests/supported-tests |
| 164 | + echo "Testing mbed-os-5.2.0" |
| 165 | + mbed update --clean "mbed-os-5.2.0" |
| 166 | + mbed compile -S |
| 167 | + mbed toolchain -S |
| 168 | + mbed target -S |
| 169 | + mbed export -S |
| 170 | + - run: |- |
| 171 | + cd .tests/supported-tests |
| 172 | + echo "Testing mbed-os-5.1.0" |
| 173 | + mbed update --clean "mbed-os-5.1.0" |
| 174 | + mbed compile -S |
| 175 | + mbed toolchain -S |
| 176 | + mbed target -S |
| 177 | + mbed export -S |
| 178 | +
|
| 179 | +workflows: |
| 180 | + version: 2 |
| 181 | + build: |
| 182 | + jobs: |
| 183 | + - py2 |
0 commit comments