Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- checkout
- run: sudo apt-get install cmake
- run: "curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin"
- run: "curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux-dev.tgz | sudo tar -zxvf- -C /usr/local/bin"
- run: "testspace config url ivailo.stridespace.com"
- run: "pip install gcovr"
- run: "curl -fsSL https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz | tar -zxvf-"
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build
on:
push:
schedule:
- cron: '0 1 * * 0'
pull_request:
# schedule:
# - cron: '0 1 * * 0'

jobs:
build:
Expand All @@ -21,6 +22,8 @@ jobs:
- uses: testspace-com/setup-testspace@v1
with:
domain: ivailo.stridespace.com
env:
TESTSPACE_CLIENT_VER: dev
- name: Install GTest
run: |
curl -fsSL https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz | tar -zxvf-
Expand Down
20 changes: 10 additions & 10 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ blocks:
commands: &ref_0
- checkout
- printenv
- curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C $HOME
- $HOME/testspace config url ivailo.stridespace.com
- source ./init_testspace.sh
- printenv
jobs:
- name: 'Job #1'
commands:
- printenv
- $HOME/testspace config
- testspace config
- cat $HOME/$SEMAPHORE_GIT_DIR/.testspace
- $HOME/testspace +README.md
- testspace +README.md
- name: 'Job #2'
commands:
- printenv
- $HOME/testspace config
- testspace config
- cat $HOME/$SEMAPHORE_GIT_DIR/.testspace
- $HOME/testspace +README.md
- testspace +README.md
epilogue:
always:
commands:
- printenv
- $HOME/testspace config
- testspace config
- cat $HOME/$SEMAPHORE_GIT_DIR/.testspace
- $HOME/testspace +README.md
- testspace +README.md
- name: 'Block #2'
dependencies: []
task:
Expand All @@ -47,6 +47,6 @@ blocks:
- name: 'Job #1'
commands:
- printenv
- $HOME/testspace config
- testspace config
- cat $HOME/$SEMAPHORE_GIT_DIR/.testspace
- $HOME/testspace +README.md
- testspace +README.md
41 changes: 41 additions & 0 deletions init_testspace.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

# This script installs the testspace client and configures it to use the
# 2wunder.testspace.com server. It is intended to be used in the
# commands section of a semaphore ci pipeline.
# When sourced it will install the testspace client and adds a function
# called testspace to the current shell. This function can be used independetly
# of the path of this script.

# Usage:
# source init_testspace.sh
#
# later in the script:
# testspace [arguments]

install_testspace_client() {
echo "Installing testspace client..."

# Set the URL based on the current architecture
if [[ $(uname) == "Darwin" ]]; then
url="https://testspace-client.s3.amazonaws.com/testspace-darwin.tgz"
else
url="https://testspace-client.s3.amazonaws.com/testspace-linux-dev.tgz"
fi

# Install testspace client using curl command
pushd $HOME
curl -fsSL $url | tar -zxvf- -C .
echo "Testspace client installed successfully."
popd
}


testspace() {
# Call testspace client with all arguments passed to the function
$HOME/testspace "$@"
}

install_testspace_client
testspace -v
testspace config url ivailo.stridespace.com