Make test into script to clean up .gitlab-ci

This commit is contained in:
2020-05-03 02:48:28 +00:00
parent 7ad8080b84
commit ceaf0d1aaa
2 changed files with 8 additions and 3 deletions

View File

@@ -24,8 +24,7 @@ test-gcc-version:
stage: test stage: test
script: script:
- docker pull $CONTAINER_TEST_IMAGE - docker pull $CONTAINER_TEST_IMAGE
- docker run $CONTAINER_TEST_IMAGE "arm-none-eabi-gcc -v" - docker run $CONTAINER_TEST_IMAGE tests/smoke.sh
release: release:
stage: release stage: release
script: script:
@@ -33,4 +32,4 @@ release:
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE - docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE - docker push $CONTAINER_RELEASE_IMAGE
only: only:
- master - master

6
tests/smoke.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -ex
which arm-none-eabi-gcc
arm-none-eabi-gcc