Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
75
Issues
75
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
59b9d5d3
Commit
59b9d5d3
authored
Jun 15, 2020
by
Bas Lijnse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'windows-ci' into 'master'
Add Windows CI See merge request
!436
parents
f96ed050
61408065
Pipeline
#43653
passed with stage
in 9 minutes and 57 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
6 deletions
+66
-6
.gitlab-ci.yml
.gitlab-ci.yml
+30
-5
Examples/DynamicEditor/TypedTaskEditor.prj.default
Examples/DynamicEditor/TypedTaskEditor.prj.default
+1
-1
Tests/posix.sh
Tests/posix.sh
+2
-0
Tests/windows.sh
Tests/windows.sh
+33
-0
No files found.
.gitlab-ci.yml
View file @
59b9d5d3
test
-x64
:
linux
-x64
:
image
:
"
camilstaps/clean:nightly"
before_script
:
-
install_clean.sh bundle-complete
-
apt-get update -qq
-
apt-get install -y -qq build-essential libsqlite3-dev libmariadbclient-dev-compat
script
:
-
bash
ci-tests.ba
sh
-
bash
Tests/posix.
sh
artifacts
:
when
:
always
paths
:
...
...
@@ -13,15 +13,40 @@ test-x64:
reports
:
junit
:
Tests/Unit/*-junit.xml
test-x86
:
linux-x86
:
only
:
-
master
image
:
"
camilstaps/clean:nightly"
before_script
:
-
CLEAN_PLATFORM=x86 install_clean.sh bundle-complete
-
apt-get update -qq
-
apt-get install -y -qq build-essential libsqlite3-dev:i386 libmariadbclient-dev-compat:i386
-
sed -i 's/x64/x86/g'
ci-tests.ba
sh
-
sed -i 's/x64/x86/g'
Tests/posix.
sh
script
:
-
bash ci-tests.bash
-
bash Tests/posix.sh
artifacts
:
when
:
always
paths
:
-
Tests/Unit/*-junit.xml
reports
:
junit
:
Tests/Unit/*-junit.xml
windows-x64
:
only
:
-
master
tags
:
-
windows
-
x64
before_script
:
-
wget -UseBasicParsing -o clean.zip https://ftp.cs.ru.nl/Clean/builds/windows-x64/clean-bundle-complete-windows-x64-latest.zip
-
7z x clean.zip
-
sed -n -i '/EnvironmentName:\tiTasks/q;p' clean-bundle-complete\Config\IDEEnvs
-
$EscapedPwd = $Pwd -replace '\\', '\\\\'
-
tail -n +3 Config\windows-x64\iTasks.env | sed "s/\{Application\}.*iTasks/$EscapedPwd\\\\Libraries/" | Out-File -encoding ASCII -Append clean-bundle-complete\Config\IDEEnvs
-
$Env:CLEAN_HOME = "$Pwd\\clean-bundle-complete"
-
$Env:Path += ";${Env:CLEAN_HOME}"
script
:
-
bash Tests/windows.sh
artifacts
:
when
:
always
paths
:
...
...
Examples/DynamicEditor/TypedTaskEditor.prj.default
View file @
59b9d5d3
...
...
@@ -27,7 +27,7 @@ Global
Time: False
Stack: False
Dynamics: True
GenericFusion:
Tru
e
GenericFusion:
Fals
e
DescExL: True
Output
Output: ShowConstructors
...
...
ci-tests.ba
sh
→
Tests/posix.
sh
View file @
59b9d5d3
#!/bin/bash
set
-e
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/.."
#Update IDEEnvs
if
[
-w
"
$CLEAN_HOME
"
/etc/IDEEnvs
]
;
then
cp
-v
"
$CLEAN_HOME
"
/etc/IDEEnvs
{
,.bak2
}
...
...
Tests/windows.sh
0 → 100644
View file @
59b9d5d3
#!/bin/bash
set
-e
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/.."
FIND
=
/usr/bin/find
SORT
=
/usr/bin/sort
(
cd
Examples
sed
's:[*/]lib[*/]:*Libraries*:'
CreateBasicAPIExamples.prj.default
>
CreateBasicAPIExamples.prj
cpm CreateBasicAPIExamples.prj
./CreateBasicAPIExamples.exe
>
BasicAPIExamples.icl
)
# Try to compile everything
$FIND
Examples Tests Tools
-name
"*.prj.default"
|
while
read
f
;
do
tof
=
"
$(
dirname
$f
)
/
$(
basename
-s
.prj.default
$f
)
"
.prj
sed
's:[*/]lib[*/]:*Libraries*:'
"
$f
"
>
"
$tof
"
done
# Without generic fusion
$FIND
Examples Tests Tools
-name
"*.prj"
-exec
dirname
{}
\;
|
$SORT
-u
| xargs
-I
{}
sh
-c
\
"cd {}; cpm make"
# With generic fusion
# NB: currently disabled because it breaks
#$FIND Examples Tests Tools -name "*.prj" -not -name "IncidoneCCC.prj" -not -name "examples.prj" -not -name "RemoteShareExamples.prj" -exec dirname {} \; | $SORT -u | xargs -I{} sh -c\
# "cd {}; sed -i.bak 's/GenericFusion: False/GenericFusion: True/g' *.prj && cpm make"
#Run the unit tests
$FIND
Tests/Unit
-name
"*.prj.default"
|
sed
"s/.prj.default//"
| xargs
-n
1
-I
@ cleantest
-f
human
--junit
@-junit.xml
-r
@.exe
#Run the non-unit iTasks tests
$FIND
Tests
-maxdepth
1
-name
"*.prj.default"
|
sed
"s/.prj.default//"
| xargs
-n
1
-I
@ cleantest
-f
human
--junit
@-junit.xml
-r
@.exe
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment