Skip to content

Commit 16e5851

Browse files
committed
Merge branch 'release/v1.7.0'
# Conflicts: # Build.csproj
2 parents 9db0342 + 31fa955 commit 16e5851

File tree

79 files changed

+2098
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2098
-769
lines changed

.github/logo-small.png

11.8 KB
Loading

.vscode/tasks.json

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
{
2-
"version": "0.1.0",
2+
"version": "2.0.0",
33
"command": "oscript",
4-
"isShellCommand": true,
5-
"showOutput": "silent",
64
"args": [
75
"-encoding=utf-8"
86
],
97
"tasks": [
108
{
11-
"taskName": "Testing project",
9+
"label": "Testing project",
10+
"type": "shell",
11+
"command": "oscript",
1212
"args": [
13+
"-encoding=utf-8",
1314
"${workspaceRoot}/tests/testrunner.os",
1415
"-runall",
1516
"${workspaceRoot}/tests"
1617
],
17-
"echoCommand": true,
18-
"showOutput": "always",
19-
"suppressTaskName": true,
20-
// "isBuildCommand": false,
21-
"isTestCommand": false,
2218
"problemMatcher": {
2319
"fileLocation": "absolute",
2420
"pattern": {
@@ -30,17 +26,15 @@
3026
}
3127
},
3228
{
33-
"taskName": "Test current test-file",
29+
"label": "Test current test-file",
30+
"type": "shell",
31+
"command": "oscript",
3432
"args": [
33+
"-encoding=utf-8",
3534
"${workspaceRoot}/tests/testrunner.os",
3635
"-run",
3736
"${file}"
3837
],
39-
"echoCommand": true,
40-
"showOutput": "always",
41-
"suppressTaskName": true,
42-
// "isBuildCommand": false,
43-
"isTestCommand": false,
4438
"problemMatcher": {
4539
"fileLocation": "absolute",
4640
"pattern": {
@@ -52,48 +46,47 @@
5246
}
5347
},
5448
{
55-
"taskName": "OneScript: compile",
49+
"label": "OneScript: compile",
50+
"type": "shell",
51+
"command": "oscript",
5652
"args": [
53+
"-encoding=utf-8",
5754
"-compile",
5855
"${file}"
5956
],
60-
"echoCommand": true,
61-
"showOutput": "always",
62-
"suppressTaskName": true,
63-
"isBuildCommand": false
57+
"problemMatcher": []
6458
},
6559
{
66-
"taskName": "OneScript: check",
60+
"label": "OneScript: check",
61+
"type": "shell",
62+
"command": "oscript",
6763
"args": [
64+
"-encoding=utf-8",
6865
"-check",
6966
"${file}"
7067
],
71-
"echoCommand": true,
72-
"showOutput": "always",
73-
"suppressTaskName": true,
74-
"isBuildCommand": false
68+
"problemMatcher": []
7569
},
7670
{
77-
"taskName": "OneScript: make",
71+
"label": "OneScript: make",
72+
"type": "shell",
73+
"command": "oscript",
7874
"args": [
75+
"-encoding=utf-8",
7976
"-make",
8077
"${file}",
8178
"${fileBasename}.exe"
8279
],
83-
"echoCommand": true,
84-
"showOutput": "always",
85-
"suppressTaskName": true,
86-
"isBuildCommand": false
80+
"problemMatcher": []
8781
},
8882
{
89-
"taskName": "OneScript: run",
83+
"label": "OneScript: run",
84+
"type": "shell",
85+
"command": "oscript",
9086
"args": [
87+
"-encoding=utf-8",
9188
"${file}"
9289
],
93-
"echoCommand": true,
94-
"showOutput": "always",
95-
"suppressTaskName": true,
96-
"isBuildCommand": true,
9790
"problemMatcher": {
9891
"fileLocation": "absolute",
9992
"pattern": {
@@ -102,7 +95,8 @@
10295
"location": 2,
10396
"message": 3
10497
}
105-
}
98+
},
99+
"group": "build"
106100
}
107101
]
108102
}

Build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<CallTarget Targets="InstallStdLib" Condition="'$(StandardLibraryPacks)' != ''"/>
126126
<DeleteTree Directories="$(LibFolder)/opm" />
127127

128-
<Exec Command="&quot;$(ToolFolder)/oscript.exe&quot; &quot;$(MSBuildProjectDirectory)\install\unicode-zipper.os&quot; unpack &quot;$(MSBuildProjectDirectory)\install\opm-1.0.2.ospx&quot; &quot;$(LibFolder)\tmp&quot;"/>
128+
<Exec Command="&quot;$(ToolFolder)/oscript.exe&quot; &quot;$(MSBuildProjectDirectory)\install\unicode-zipper.os&quot; unpack &quot;$(MSBuildProjectDirectory)\install\opm.ospx&quot; &quot;$(LibFolder)\tmp&quot;"/>
129129
<Exec Command="&quot;$(ToolFolder)/oscript.exe&quot; &quot;$(MSBuildProjectDirectory)\install\unicode-zipper.os&quot; unpack &quot;$(LibFolder)\tmp\content.zip&quot; &quot;$(LibFolder)/opm&quot;"/>
130130

131131
<Copy SourceFiles="$(MSBuildProjectDirectory)\install\package-loader.os" DestinationFolder="$(LibFolder)"/>

Jenkinsfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pipeline {
44
agent none
55

66
environment {
7-
ReleaseNumber = '1.6.0'
7+
ReleaseNumber = '1.7.0'
88
outputEnc = '65001'
99
}
1010

@@ -22,8 +22,18 @@ pipeline {
2222
docker login -p $dockerpassword -u $dockeruser
2323
docker push oscript/onescript-builder:deb
2424
docker push oscript/onescript-builder:rpm
25+
docker push oscript/onescript-builder:gcc
26+
27+
# TODO: Немного через жопу собираются .so для NativеApi
28+
# при сборке образа, а не при его запуске
29+
docker create --name gcc-$BUILD_NUMBER oscript/onescript-builder:gcc
30+
docker cp gcc-$BUILD_NUMBER:/built .
31+
docker rm gcc-$BUILD_NUMBER
2532
""".stripIndent()
2633
}
34+
script {
35+
stash includes: 'built/** ', name: 'builtNativeApi'
36+
}
2737
}
2838
}
2939

@@ -119,6 +129,7 @@ pipeline {
119129
}
120130

121131
unstash 'buildResults'
132+
unstash 'builtNativeApi'
122133

123134
sh '''\
124135
if [ ! -d lintests ]; then
@@ -154,6 +165,7 @@ pipeline {
154165
}
155166

156167
unstash 'buildResults'
168+
unstash 'builtNativeApi'
157169
script
158170
{
159171
if (env.BRANCH_NAME == "preview") {
@@ -180,6 +192,7 @@ pipeline {
180192

181193
steps {
182194
unstash 'buildResults'
195+
unstash 'builtNativeApi'
183196
sh '/bld/build.sh'
184197
archiveArtifacts artifacts: 'out/deb/*', fingerprint: true
185198
stash includes: 'out/deb/*', name: 'debian'
@@ -196,6 +209,7 @@ pipeline {
196209

197210
steps {
198211
unstash 'buildResults'
212+
unstash 'builtNativeApi'
199213
sh '/bld/build.sh'
200214
archiveArtifacts artifacts: 'out/rpm/*', fingerprint: true
201215
stash includes: 'out/rpm/*', name: 'redhat'

README-EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
### The project is an independent cross-platform open-source implementation of a virtual machine that executes scripts written in BSL (1C:Enterprise scripting language).
44

5+
![Logo](.github/logo-small.png)
6+
57
Script execution doesn't use any 1C:Enterprise system libraries and doesn't require installation of 1C:Enterprise system on the target machine.
68

79
In other words, this is a possibility to write programs in the 1C (BSL) language without using the 1C:Enterprise platform.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
[![Join telegram chat](https://img.shields.io/badge/chat-telegram-blue?style=flat&logo=telegram)](https://t.me/oscript_library) [![DEV Build Status](https://build.oscript.io/buildStatus/icon?job=1Script%2Fdevelop&style=flat-square&subject=dev)](https://build.oscript.io/job/1Script/job/develop/) [![STABLE Build Status](https://build.oscript.io/buildStatus/icon?job=1Script%2Fmaster&style=flat-square&subject=stable)](https://build.oscript.io/job/1Script/job/master/)
44

5-
65
## Проект является независимой кросс-платформенной реализацией виртуальной машины, исполняющей скрипты на языке 1С:Предприятие ##
76

7+
![Logo](.github/logo-small.png)
8+
89
При этом библиотеки системы 1С:Предприятие не используются и не требуется установка системы 1С:Предприятие на целевой машине.
910

1011
Иными словами, это инструмент для написания и выполнения программ на языке 1С без использования платформы 1С:Предприятие.

install/builders/deb/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM ubuntu:16.04
2-
32

43

54
RUN apt-get update && apt-get install -y \

install/builders/deb/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cp ${BUILDERROOT}settings/dirs $DSTPATH/DEBIAN/
2727
cat ${BUILDERROOT}settings/control | sed -r "s/VERSION/$VERSION/g" > $DSTPATH/DEBIAN/control
2828
cp ${BINPATH}*.exe $DSTPATH/usr/share/oscript/bin
2929
cp ${BINPATH}*.dll $DSTPATH/usr/share/oscript/bin
30+
cp ${BINPATH}*.so $DSTPATH/usr/share/oscript/bin
3031
cp ${BUILDERROOT}oscript $DSTPATH/usr/bin
3132
cp ${BUILDERROOT}oscript-cgi $DSTPATH/usr/bin
3233
cp ${BUILDERROOT}oscript-opm $DSTPATH/usr/bin
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update -qq \
4+
&& dpkg --add-architecture i386 \
5+
&& apt-get install -y -qq build-essential cmake uuid-dev libc6-dev gcc-multilib g++-multilib
6+
7+
WORKDIR /src/proxy
8+
COPY /src/ScriptEngine.NativeApi /src/proxy
9+
RUN chmod +x build.sh && ./build.sh
10+
11+
WORKDIR /src/tests
12+
COPY /tests/native-api /src/tests
13+
RUN chmod +x build.sh && ./build.sh
14+
15+
RUN cd / \
16+
&& mkdir built \
17+
&& mkdir built/tmp \
18+
&& mkdir built/tmp/bin \
19+
&& mkdir built/tmp/tests \
20+
&& cp /src/proxy/*.so built/tmp/bin \
21+
&& cp /src/tests/*.so built/tmp/tests \
22+
&& chmod -x built/tmp/bin/*.so

install/builders/rpm/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM fedora:26
2-
MAINTAINER Chmouel Boudjnah <[email protected]>
32

43

54
# Install various packages to get compile environment

0 commit comments

Comments
 (0)