Skip to content

Commit

Permalink
CI: Move all commands into common script stage
Browse files Browse the repository at this point in the history
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
  • Loading branch information
fzdobylak committed Mar 14, 2024
1 parent e74fed0 commit b62c795
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ test-mono-pkg:
tags: ['ace-x86_64']
variables:
JOB_DEPS: gtk-sharp2 mono-complete
before_script:
script:
- *install_dependencies
- *init_python
# Download Renode pkg
- wget --progress=dot:giga https://builds.renode.io/renode-latest.pkg.tar.xz
script:
- export PYRENODE_RUNTIME=mono
- export PYRENODE_PKG=$PWD/renode-latest.pkg.tar.xz
- *run_tests
Expand All @@ -43,39 +42,36 @@ test-installed-pkg:
tags: ['ace-x86_64']
variables:
JOB_DEPS: gtk-sharp2 mono-complete
before_script:
script:
- *install_dependencies
- *init_python
# Download and install Renode
- wget --progress=dot:giga https://builds.renode.io/renode-latest.deb
- apt-get install ./renode-latest.deb
script:
- *run_tests

test-dotnet-build:
stage: build
tags: ['ace-x86_64']
before_script:
script:
- *install_dependencies
- *install_dotnet
- *init_python
# Build Renode
- git clone https://github.com/antmicro/renode.git
- pushd renode && ./build.sh --net && popd
script:
- export PYRENODE_RUNTIME=coreclr
- export PYRENODE_BUILD_DIR=$PWD/renode
- *run_tests

test-dotnet-portable:
stage: build
tags: ['ace-x86_64']
before_script:
script:
- *install_dependencies
- *init_python
# Download Renode pkg
- wget --progress=dot:giga https://builds.renode.io/renode-latest.linux-portable-dotnet.tar.gz
script:
- tar xvf renode-latest.linux-portable-dotnet.tar.gz
- export PYRENODE_RUNTIME=coreclr
- export PYRENODE_BIN=$(realpath $PWD/renode_*-dotnet_portable/renode)
Expand All @@ -85,12 +81,11 @@ test-dotnet-pkg:
tags: ['ace-x86_64']
variables:
JOB_DEPS: curl jq zip
before_script:
script:
- *install_dependencies
- *install_dotnet
- *init_python
- curl -s https://builds.renode.io/renode-latest.linux-dotnet.tar.gz -o renode-dotnet.tar.gz
script:
- export PYRENODE_RUNTIME=coreclr
- export PYRENODE_PKG=$PWD/renode-dotnet.tar.gz
- *run_tests
Expand All @@ -100,13 +95,12 @@ test-mono-build:
tags: ['ace-x86_64']
variables:
JOB_DEPS: gtk-sharp2 mono-complete
before_script:
script:
- *install_dependencies
- *init_python
# Build Renode
- git clone https://github.com/antmicro/renode.git
- pushd renode && ./build.sh && popd
script:
- export PYRENODE_RUNTIME=mono
- export PYRENODE_BUILD_DIR=$(pwd)/renode
- *run_tests

0 comments on commit b62c795

Please sign in to comment.