minor update

This commit is contained in:
Blaise Tine 2024-05-09 21:21:28 -07:00
parent ca11ccee1e
commit 4bb31e63e2
2 changed files with 35 additions and 80 deletions

View file

@ -21,51 +21,34 @@ cache:
directories:
- $TOOLDIR
- $HOME/third_party
- $HOME/build32
- $HOME/build64
timeout: 1200
before_install:
- mkdir -p $HOME/build
- cd $HOME/build && TOOLDIR=$TOOLDIR XLEN=$XLEN ../configure
install:
- cp -rf $HOME/third_party $TRAVIS_BUILD_DIR
- cp -rf $HOME/build$XLEN build && cd build
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.2" ]; then
rm -rf $TOOLDIR;
ci/toolchain_install.sh --all;
echo "v0.2" > "$TOOLDIR/version.txt";
fi
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v0.2" ]; then
cd $TRAVIS_BUILD_DIR;
make -C third_party > /dev/null;
cp -rf third_party $HOME;
echo "v0.2" > "$HOME/third_party/version.txt";
else
cp -rf $HOME/third_party $TRAVIS_BUILD_DIR;
fi
make build -s > /dev/null
before_script:
- source $HOME/build$XLEN/ci/toolchain_env.sh
- source ci/toolchain_env.sh
stages:
- build
- test
jobs:
include:
- stage: build
name: build
before_install:
- rm -rf $HOME/build32 && mkdir -p $HOME/build32
- rm -rf $HOME/build64 && mkdir -p $HOME/build64
- cd $HOME/build32 && TOOLDIR=$TOOLDIR XLEN=32 $TRAVIS_BUILD_DIR/configure
- cd $HOME/build64 && TOOLDIR=$TOOLDIR XLEN=64 $TRAVIS_BUILD_DIR/configure
install:
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.2" ]; then
rm -rf $TOOLDIR;
$HOME/build32/ci/toolchain_install.sh --all;
echo "v0.2" > "$TOOLDIR/version.txt";
fi
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v0.2" ]; then
cd $TRAVIS_BUILD_DIR;
make -C third_party > /dev/null;
cp -rf third_party $HOME;
echo "v0.2" > "$HOME/third_party/version.txt";
else
cp -rf $HOME/third_party $TRAVIS_BUILD_DIR;
fi
before_script:
- source $HOME/build32/ci/toolchain_env.sh
script:
- cd $HOME/build32 && make build -s > /dev/null
- cd $HOME/build64 && make build -s > /dev/null
- stage: test
name: regression
name: regression32
env: XLEN=32
script:
- ./ci/travis_run.py ./ci/regression.sh --unittest
@ -74,6 +57,10 @@ jobs:
- ./ci/travis_run.py ./ci/regression.sh --synthesis
- ./ci/travis_run.py ./ci/regression.sh --opencl
- ./ci/travis_run.py ./ci/regression.sh --regression
- ./ci/travis_run.py ./ci/regression.sh --cluster
- ./ci/travis_run.py ./ci/regression.sh --config
- ./ci/travis_run.py ./ci/regression.sh --debug
- ./ci/travis_run.py ./ci/regression.sh --stress
- stage: test
name: regression64
env: XLEN=64
@ -81,20 +68,4 @@ jobs:
- ./ci/travis_run.py ./ci/regression.sh --isa
- ./ci/travis_run.py ./ci/regression.sh --kernel
- ./ci/travis_run.py ./ci/regression.sh --synthesis
- ./ci/travis_run.py ./ci/regression.sh --regression
- stage: test
name: config
env: XLEN=32
script:
- ./ci/travis_run.py ./ci/regression.sh --cluster
- ./ci/travis_run.py ./ci/regression.sh --config
- stage: test
name: debug
env: XLEN=32
script:
- ./ci/travis_run.py ./ci/regression.sh --debug
- stage: test
name: stress
env: XLEN=32
script:
- ./ci/travis_run.py ./ci/regression.sh --stress
- ./ci/travis_run.py ./ci/regression.sh --regression

View file

@ -34,7 +34,7 @@ riscv32()
done
cat riscv32-gnu-toolchain.tar.bz2.parta* > riscv32-gnu-toolchain.tar.bz2
tar -xvf riscv32-gnu-toolchain.tar.bz2
mkdir -p $TOOLDIR && cp -rf riscv32-gnu-toolchain $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/riscv32-gnu-toolchain && mv riscv32-gnu-toolchain $TOOLDIR
rm -rf riscv32-gnu-toolchain.tar.bz2*
}
@ -51,7 +51,7 @@ riscv64()
done
cat riscv64-gnu-toolchain.tar.bz2.parta* > riscv64-gnu-toolchain.tar.bz2
tar -xvf riscv64-gnu-toolchain.tar.bz2
mkdir -p $TOOLDIR && cp -rf riscv64-gnu-toolchain $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/riscv64-gnu-toolchain && mv riscv64-gnu-toolchain $TOOLDIR
rm -rf riscv64-gnu-toolchain riscv64-gnu-toolchain.tar.bz2*
}
@ -69,31 +69,15 @@ llvm()
done
cat llvm-vortex2.tar.bz2.parta* > llvm-vortex2.tar.bz2
tar -xvf llvm-vortex2.tar.bz2
mkdir -p $TOOLDIR && cp -rf llvm-vortex $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/llvm-vortex && mv llvm-vortex $TOOLDIR
rm -rf llvm-vortex llvm-vortex2.tar.bz2*
}
libc32()
{
wget $REPOSITORY/libc32/libc32.tar.bz2
tar -xvf libc32.tar.bz2
mkdir -p $TOOLDIR && cp -rf libc32 $TOOLDIR
rm -rf libc32 libc32.tar.bz2
}
libc64()
{
wget $REPOSITORY/libc64/libc64.tar.bz2
tar -xvf libc64.tar.bz2
mkdir -p $TOOLDIR && cp -rf libc64 $TOOLDIR
rm -rf libc64 libc64.tar.bz2
}
libcrt32()
{
wget $REPOSITORY/libcrt32/libcrt32.tar.bz2
tar -xvf libcrt32.tar.bz2
mkdir -p $TOOLDIR && cp -rf libcrt32 $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/libcrt32 && mv libcrt32 $TOOLDIR
rm -rf libcrt32 libcrt32.tar.bz2
}
@ -101,7 +85,7 @@ libcrt64()
{
wget $REPOSITORY/libcrt64/libcrt64.tar.bz2
tar -xvf libcrt64.tar.bz2
mkdir -p $TOOLDIR && cp -rf libcrt64 $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/libcrt64 && mv libcrt64 $TOOLDIR
rm -rf libcrt64 libcrt64.tar.bz2
}
@ -109,7 +93,7 @@ libc32()
{
wget $REPOSITORY/libc32/libc32.tar.bz2
tar -xvf libc32.tar.bz2
mkdir -p $TOOLDIR && cp -rf libc32 $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/libc32 && mv libc32 $TOOLDIR
rm -rf libc32 libc32.tar.bz2
}
@ -117,7 +101,7 @@ libc64()
{
wget $REPOSITORY/libc64/libc64.tar.bz2
tar -xvf libc64.tar.bz2
mkdir -p $TOOLDIR && cp -rf libc64 $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/libc64 && mv libc64 $TOOLDIR
rm -rf libc64 libc64.tar.bz2
}
@ -125,7 +109,7 @@ pocl()
{
wget $REPOSITORY/pocl/$OSDIR/pocl2.tar.bz2
tar -xvf pocl2.tar.bz2
mkdir -p $TOOLDIR && cp -rf pocl $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/pocl && mv pocl $TOOLDIR
rm -rf pocl2 pocl2.tar.bz2
}
@ -133,7 +117,7 @@ verilator()
{
wget $REPOSITORY/verilator/$OSDIR/verilator.tar.bz2
tar -xvf verilator.tar.bz2
mkdir -p $TOOLDIR && cp -rf verilator $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/verilator && mv verilator $TOOLDIR
rm -rf verilator verilator.tar.bz2
}
@ -141,7 +125,7 @@ sv2v()
{
wget $REPOSITORY/sv2v/$OSDIR/sv2v.tar.bz2
tar -xvf sv2v.tar.bz2
mkdir -p $TOOLDIR && cp -rf sv2v $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/sv2v && mv sv2v $TOOLDIR
rm -rf sv2v sv2v.tar.bz2
}
@ -159,7 +143,7 @@ yosys()
done
cat yosys.tar.bz2.parta* > yosys.tar.bz2
tar -xvf yosys.tar.bz2
mkdir -p $TOOLDIR && cp -rf yosys $TOOLDIR
mkdir -p $TOOLDIR && rm -rf $TOOLDIR/yosys && mv yosys $TOOLDIR
rm -rf yosys yosys.tar.bz2* yosys
}