-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Travis CI configuration #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| sudo: required | ||
|
|
||
| language: | ||
| - c | ||
|
|
||
| jobs: | ||
| include: | ||
| - os: linux | ||
| dist: bionic | ||
| env: TEST_M32=0 | ||
| - os: linux | ||
| dist: bionic | ||
| env: TEST_M32=1 | ||
| - os: osx | ||
| env: TEST_M32=0 | ||
|
|
||
| install: | ||
| - true | ||
|
|
||
| script: | ||
| - ./tools/travis/travis.sh |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| #! /bin/sh | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PLEASE FIX: All .sh files reequire (currently) a BSD 3-clause license. No unlicensed shell scripts may come in. (License will, eventually, be changed to Apache).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i added apache license |
||
|
|
||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| set -e | ||
| set -x | ||
|
|
||
| HOSTOS=$(uname -s) | ||
|
|
||
| case $HOSTOS in | ||
| Linux) | ||
| sudo apt-get update -q | ||
| sudo apt-get install -y gperf | ||
| if [ $TEST_M32 -ne 0 ]; then | ||
| sudo apt-get install -y gcc-multilib | ||
| fi | ||
| MAKE=make | ||
| CONFIGURE_HOSTOS=-l | ||
| ;; | ||
| Darwin) | ||
| MAKE=make | ||
| CONFIGURE_HOSTOS=-m | ||
| ;; | ||
| *) | ||
| echo Unknown OS: $HOSTOS | ||
| exit 1 | ||
| ;; | ||
| esac | ||
|
|
||
| ORIG_DIR=$(pwd) | ||
|
|
||
| cd .. | ||
| git clone --depth=1 https://github.com/apache/incubator-nuttx-apps apps | ||
| git clone --depth=1 https://github.com/nuttx/tools | ||
|
|
||
| cd tools/kconfig-frontends | ||
| ./configure --disable-kconfig --disable-nconf --disable-qconf \ | ||
| --disable-gconf --disable-mconf --disable-static --disable-shared \ | ||
| --disable-L10n --disable-utils | ||
| ${MAKE} | ||
| sudo ${MAKE} install | ||
| cd .. | ||
|
|
||
| cd ${ORIG_DIR} | ||
| # git-based versioning doesn't always work because | ||
| # travis only clones the repo with shallow history. | ||
| mv .git .git.bak | ||
| cp tools/travis/version .version | ||
| ./tools/configure.sh ${CONFIGURE_HOSTOS} sim:ostest | ||
| if [ $TEST_M32 -ne 0 ]; then | ||
| echo CONFIG_SIM_M32=y >> .config | ||
| ${MAKE} oldconfig | ||
| fi | ||
| echo ===== .config START ===== | ||
| cat .config | ||
| echo ===== .config END ===== | ||
| ${MAKE} | ||
| ./nuttx | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| CONFIG_VERSION_STRING="Travis-CI" | ||
| CONFIG_VERSION_MAJOR=0 | ||
| CONFIG_VERSION_MINOR=0 | ||
| CONFIG_VERSION_BUILD="0000000000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems out of place with the other commits in the PR. Perhaps it should be a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is required by other changes as otherwise ./nuttx just hangs after running the tests.