2018-02-22 22:06:07 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2018-02-23 07:12:58 +00:00
|
|
|
prepare:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-02-22 22:06:07 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: Prepare
|
|
|
|
command: |
|
2019-02-01 20:00:41 +00:00
|
|
|
sudo rm -rf /var/lib/apt/lists/lock
|
2018-02-22 22:06:07 +00:00
|
|
|
sudo apt-get update
|
2019-02-01 20:00:41 +00:00
|
|
|
sudo rm -rf /var/lib/apt/lists/lock
|
2019-12-24 06:32:52 +00:00
|
|
|
sudo apt-get install -yq build-essential git unzip ncurses-dev libz-dev libssl-dev python subversion gettext gawk wget curl rsync perl libelf-dev python3.5 libpython3.5-stdlib liblzma-dev
|
2019-08-07 11:18:10 +00:00
|
|
|
pyenv global 3.5.2
|
2018-02-22 22:06:07 +00:00
|
|
|
|
2018-05-23 08:56:36 +00:00
|
|
|
build_x86_64:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-02-23 07:12:58 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: x86_64
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-02-23 07:12:58 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
2018-02-23 07:17:53 +00:00
|
|
|
steps:
|
|
|
|
- run:
|
2018-02-23 07:22:35 +00:00
|
|
|
name: cache
|
2018-02-23 07:17:53 +00:00
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-02-23 07:17:53 +00:00
|
|
|
|
2018-02-22 22:06:07 +00:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 50m
|
2018-02-22 22:06:07 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2018-02-23 09:23:33 +00:00
|
|
|
git pull || true
|
2018-02-22 22:06:07 +00:00
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-21 16:31:27 +00:00
|
|
|
sudo apt-get update
|
2019-04-26 05:20:18 +00:00
|
|
|
sudo apt-get install -yq libelf-dev
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-02-22 22:06:07 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
2018-04-10 08:43:41 +00:00
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
2018-02-22 22:06:07 +00:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 50m
|
2019-04-26 15:13:48 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/install -j2
|
2018-02-22 22:06:07 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2018-02-23 06:46:01 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
2018-02-22 22:35:04 +00:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
2018-05-23 08:56:36 +00:00
|
|
|
build_x86:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-05-23 08:56:36 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: x86
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-05-23 08:56:36 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-05-23 08:56:36 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-05-23 08:56:36 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2018-05-23 08:56:36 +00:00
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-05-23 08:56:36 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2019-04-26 15:13:48 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/install -j2
|
2018-05-23 08:56:36 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2018-05-23 08:56:36 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
2018-02-22 22:35:04 +00:00
|
|
|
build_rpi3:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-02-22 22:35:04 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: rpi3
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-02-22 22:35:04 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
2018-02-23 07:17:53 +00:00
|
|
|
steps:
|
|
|
|
- run:
|
2018-02-23 07:22:35 +00:00
|
|
|
name: cache
|
2018-02-23 07:17:53 +00:00
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2020-07-21 19:20:45 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
|
|
|
no_output_timeout: 40m
|
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
pyenv global 3.5.2
|
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
|
|
|
no_output_timeout: 40m
|
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
build_espressobin:
|
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: espressobin
|
|
|
|
- OMR_KERNEL: 5.4
|
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
|
|
|
no_output_timeout: 40m
|
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
pyenv global 3.5.2
|
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
|
|
|
no_output_timeout: 40m
|
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
build_r2s:
|
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: r2s
|
|
|
|
- OMR_KERNEL: 5.4
|
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-02-23 07:17:53 +00:00
|
|
|
|
2018-02-22 22:35:04 +00:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-02-22 22:35:04 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2018-02-23 09:23:33 +00:00
|
|
|
git pull || true
|
2018-02-22 22:35:04 +00:00
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-02-22 22:35:04 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
2018-04-10 08:43:41 +00:00
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
2018-02-22 22:35:04 +00:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-04-05 18:03:18 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
2018-02-22 22:35:04 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2019-06-25 16:03:40 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
build_rpi4:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2019-06-25 16:03:40 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: rpi4
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2019-06-25 16:03:40 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2019-06-25 16:03:40 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2019-06-25 16:03:40 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2019-06-25 16:03:40 +00:00
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2019-07-07 10:11:48 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
2019-06-25 16:03:40 +00:00
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2019-06-25 16:03:40 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2018-02-23 06:46:01 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
2018-02-22 22:06:07 +00:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
2018-02-22 22:27:59 +00:00
|
|
|
|
2018-05-18 13:40:24 +00:00
|
|
|
build_rpi2:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-05-18 13:40:24 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: rpi2
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-05-18 13:40:24 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-05-18 13:40:24 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-05-18 13:40:24 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2018-05-18 13:40:24 +00:00
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-05-18 13:40:24 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2019-07-07 10:11:48 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile package/compile target/install -j2
|
2018-05-18 13:40:24 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2018-05-18 13:40:24 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
2018-09-07 16:12:59 +00:00
|
|
|
build_bpi-r2:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-09-07 16:12:59 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: bpi-r2
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-09-07 16:12:59 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-09-07 16:12:59 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-09-07 16:12:59 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2018-09-07 16:12:59 +00:00
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2019-04-26 15:13:48 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
2018-09-07 16:12:59 +00:00
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2019-06-27 18:49:24 +00:00
|
|
|
command: |
|
2019-08-24 18:50:34 +00:00
|
|
|
sudo apt-get update
|
2019-08-24 19:41:21 +00:00
|
|
|
sudo apt-get -yq install swig2.0
|
2019-06-27 18:49:24 +00:00
|
|
|
make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
2018-09-07 16:12:59 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2018-09-07 16:12:59 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
2018-12-06 15:00:05 +00:00
|
|
|
build_wrt3200acm:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-12-06 15:00:05 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
|
|
|
- OMR_TARGET: wrt3200acm
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-12-06 15:00:05 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-12-06 15:00:05 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build toolchain
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-12-06 15:00:05 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2019-09-23 10:35:36 +00:00
|
|
|
git pull || true
|
2018-12-06 15:00:05 +00:00
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-12-06 15:00:05 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-12-06 15:00:05 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Deploy
|
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
2018-12-06 15:00:05 +00:00
|
|
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
2018-12-23 13:19:31 +00:00
|
|
|
build_wrt32:
|
2019-08-21 16:03:13 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-1604:201903-01
|
2018-12-23 13:19:31 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
- OMR_VERSION: $CIRCLE_TAG
|
2020-03-27 09:27:36 +00:00
|
|
|
- OMR_KERNEL: 5.4
|
2018-12-23 13:19:31 +00:00
|
|
|
|
|
|
|
working_directory: ~/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: cache
|
|
|
|
command: |
|
2020-09-10 19:07:37 +00:00
|
|
|
echo "cache 107 $OMR_KERNEL $OMR_TARGET" > /tmp/cache-target
|
2020-08-03 14:52:27 +00:00
|
|
|
echo "cache 108 $OMR_KERNEL $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
2018-12-23 13:19:31 +00:00
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
- cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
|
|
|
|
- run:
|
2018-12-24 13:08:47 +00:00
|
|
|
name: Build toolchain wrt3200acm
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-12-23 13:19:31 +00:00
|
|
|
command: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
|
|
|
cd openmptcprouter
|
2019-12-18 07:31:46 +00:00
|
|
|
git checkout ${CIRCLE_BRANCH:-$CIRCLE_TAG} || true
|
2018-12-23 13:19:31 +00:00
|
|
|
git pull || true
|
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_TARGET="wrt3200acm"
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-12-23 13:19:31 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/wrt3200acm/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/wrt3200acm/source/key-build.pub
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
2018-12-24 13:08:47 +00:00
|
|
|
name: Build wrt3200acm
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-12-23 13:19:31 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/wrt3200acm/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
|
|
|
|
|
|
|
- run:
|
2018-12-24 13:08:47 +00:00
|
|
|
name: Deploy wrt3200acm
|
2018-12-23 13:19:31 +00:00
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/wrt3200acm/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/wrt3200acm
|
2018-12-23 13:19:31 +00:00
|
|
|
rm -rf ~/openmptcprouter/wrt3200acm/source/bin
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
|
|
|
paths:
|
|
|
|
- openmptcprouter
|
|
|
|
|
|
|
|
- run:
|
2018-12-24 13:08:47 +00:00
|
|
|
name: Build toolchain wrt32x
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-12-23 13:19:31 +00:00
|
|
|
command: |
|
2018-12-24 13:08:47 +00:00
|
|
|
cd ~/openmptcprouter/
|
2018-12-23 13:19:31 +00:00
|
|
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
|
|
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
|
|
|
export OMR_TARGET="wrt32x"
|
2018-12-24 15:37:22 +00:00
|
|
|
ln -s wrt3200acm wrt32x
|
2019-08-07 11:22:58 +00:00
|
|
|
pyenv global 3.5.2
|
2018-12-23 13:19:31 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j2
|
|
|
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/wrt32x/source/key-build
|
|
|
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/wrt32x/source/key-build.pub
|
|
|
|
|
|
|
|
- run:
|
2018-12-24 13:08:47 +00:00
|
|
|
name: Build wrt32x
|
2019-07-12 06:13:41 +00:00
|
|
|
no_output_timeout: 40m
|
2018-12-23 13:19:31 +00:00
|
|
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/wrt32x/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
|
|
|
|
|
|
|
- run:
|
2018-12-24 13:08:47 +00:00
|
|
|
name: Deploy wrt32x
|
2018-12-23 13:19:31 +00:00
|
|
|
command: |
|
2020-07-03 17:14:12 +00:00
|
|
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/$OMR_TARGET
|
|
|
|
rsync -av --delete-after ~/openmptcprouter/wrt32x/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/${CIRCLE_BRANCH:-release}/${CIRCLE_TAG:-$OMR_KERNEL}/wrt32x
|
2018-09-07 16:12:59 +00:00
|
|
|
|
2018-02-22 22:27:59 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
main:
|
|
|
|
jobs:
|
2019-12-12 19:26:32 +00:00
|
|
|
- prepare:
|
2019-12-12 08:25:18 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2018-05-23 08:56:36 +00:00
|
|
|
- build_x86_64:
|
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2018-02-23 07:12:58 +00:00
|
|
|
- build_x86:
|
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2019-06-27 18:49:24 +00:00
|
|
|
- build_rpi4:
|
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2018-02-23 07:12:58 +00:00
|
|
|
- build_rpi3:
|
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2020-07-21 19:20:45 +00:00
|
|
|
- build_espressobin:
|
|
|
|
requires:
|
|
|
|
- prepare
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2020-09-10 19:07:37 +00:00
|
|
|
- build_r2s:
|
|
|
|
requires:
|
|
|
|
- prepare
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2018-05-18 13:40:24 +00:00
|
|
|
- build_rpi2:
|
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2018-09-07 16:12:59 +00:00
|
|
|
- build_bpi-r2:
|
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2018-12-23 13:19:31 +00:00
|
|
|
- build_wrt32:
|
2018-12-06 15:00:05 +00:00
|
|
|
requires:
|
|
|
|
- prepare
|
2019-12-17 07:22:37 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|