parent
5f7fea514e
commit
9888bea05a
@ -1,53 +0,0 @@
|
|||||||
dist: focal
|
|
||||||
arch: amd64
|
|
||||||
language: c
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- shellcheck
|
|
||||||
- cmake
|
|
||||||
- astyle
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- LC_ALL: C
|
|
||||||
- CCACHE_WRAPPER_PATH: /tmp/kaleidoscope-ccache
|
|
||||||
git:
|
|
||||||
quiet: true
|
|
||||||
depth: false
|
|
||||||
before_install:
|
|
||||||
- sh .travis/setup-ramdisk.sh
|
|
||||||
- ccache --set-config=compiler_check=content -M 1G -F 0
|
|
||||||
|
|
||||||
install:
|
|
||||||
- cd $TRAVIS_BUILD_DIR
|
|
||||||
- git clone --depth 1 --recurse-submodules=build-tools --recurse-submodules=toolchain --recurse-submodules=avr/libraries/ --jobs 16 --shallow-submodules git://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio $TRAVIS_BUILD_DIR/.arduino/user/hardware/keyboardio
|
|
||||||
## We delete the Bundle's version of Kaleidoscope, and symlink ourselves in.
|
|
||||||
## This makes sure we're using the current version of the library.
|
|
||||||
- export KALEIDOSCOPE_TEMP_PATH=$TRAVIS_BUILD_DIR/.kaleidoscope-build-cache
|
|
||||||
- export KALEIDOSCOPE_ETC_DIR=$TRAVIS_BUILD_DIR/etc
|
|
||||||
- make adjust-git-timestamps
|
|
||||||
- make install-arduino-cli
|
|
||||||
- make configure-arduino-cli
|
|
||||||
- make install-arduino-core-avr
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- env: TEST_CMD="make -j 2 smoke-sketches"
|
|
||||||
- env: TEST_CMD="CCACHE_NOT_SUPPORTED=1 make simulator-tests"
|
|
||||||
- env: TEST_CMD="make cpplint"
|
|
||||||
- env: TEST_CMD="make find-filename-conflicts"
|
|
||||||
- env: TEST_CMD="make shellcheck"
|
|
||||||
- env: TEST_CMD="make check-astyle"
|
|
||||||
script:
|
|
||||||
- unset CC
|
|
||||||
- eval $TEST_CMD
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: change
|
|
||||||
on_failure: change
|
|
||||||
cache:
|
|
||||||
apt: true
|
|
||||||
ccache: true
|
|
||||||
directories:
|
|
||||||
- .kaleidoscope-build-cache
|
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
|
|
||||||
export BLDDIR=/home/travis/build
|
|
||||||
|
|
||||||
df -h
|
|
||||||
du -sh "$HOME"
|
|
||||||
du -sh "$BLDDIR"
|
|
||||||
sudo mv "$BLDDIR" "$BLDDIR.ori"
|
|
||||||
sudo mkdir -p "$BLDDIR"
|
|
||||||
sudo mount -t tmpfs -o size=8192m tmps "$BLDDIR"
|
|
||||||
time sudo cp -R "$BLDDIR.ori/." "$BLDDIR"
|
|
||||||
sudo chown -R travis:travis "$BLDDIR"
|
|
||||||
df -h
|
|
||||||
du -sh "$HOME"
|
|
||||||
du -sh "$BLDDIR"
|
|
Loading…
Reference in new issue