@@ -17,59 +17,60 @@ cache:
17
17
addons :
18
18
apt :
19
19
sources :
20
- - ubuntu-toolchain-r-test
20
+ - ubuntu-toolchain-r-test
21
21
packages :
22
- # Build dependencies:
23
- - cmake
24
- - p7zip-full
22
+ # Build dependencies:
23
+ - cmake
24
+ - p7zip-full
25
25
26
26
before_install :
27
27
# This workaround is required to avoid libstdc++ errors (Emscripten requires a recent version of libstdc++)
28
28
- wget -q -O libstdc++6 http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.12_amd64.deb
29
29
- sudo dpkg --force-all -i libstdc++6
30
30
31
31
install :
32
- # Ensure we use a recent version of Node.js (and npm).
32
+ # Ensure we use a recent version of Node.js (and npm).
33
33
- nvm install v16 && nvm use v16
34
- # Compile the tests only for GDCore
34
+ # Compile the tests only for GDCore
35
35
- mkdir .build-tests
36
36
- cd .build-tests
37
37
- cmake -DBUILD_GDJS=FALSE -DBUILD_TESTS=TRUE -DCMAKE_CXX_COMPILER=$(which $CXX) -DCMAKE_C_COMPILER=$(which $CC) ..
38
38
- make -j 4
39
39
- cd ..
40
- # Install Emscripten (for GDevelop.js)
41
- - git clone https://github.com/juj/emsdk.git
40
+ # Install Emscripten (for GDevelop.js)
41
+ # Specify the tag for the core repository to avois breaking changes.
42
+ - git clone --depth 1 --branch 3.1.21 https://github.com/juj/emsdk.git
42
43
- cd emsdk && ./emsdk install 3.1.21 && ./emsdk activate 3.1.21 && cd ..
43
- # Install GDevelop.js dependencies
44
+ # Install GDevelop.js dependencies
44
45
- cd GDevelop.js && npm install && cd ..
45
- # Build GDevelop.js
46
- # (in a subshell to avoid Emscripten polluting the Node.js and npm version for the rest of the build)
46
+ # Build GDevelop.js
47
+ # (in a subshell to avoid Emscripten polluting the Node.js and npm version for the rest of the build)
47
48
- (set -e; cd GDevelop.js && source ../emsdk/emsdk_env.sh && npm run build && cd ..)
48
- # Install newIDE tests dependencies
49
+ # Install newIDE tests dependencies
49
50
- npm -v
50
51
- cd newIDE/app && npm install
51
52
- cd ../..
52
- # Install GDJS tests dependencies
53
+ # Install GDJS tests dependencies
53
54
- cd GDJS && npm install && cd tests && npm install
54
55
- cd ../..
55
56
56
57
script :
57
- # GDCore tests:
58
+ # GDCore tests:
58
59
- cd .build-tests
59
60
- Core/GDCore_tests
60
61
- cd ..
61
- # GDevelop.js tests
62
+ # GDevelop.js tests
62
63
- cd GDevelop.js
63
64
- npm test
64
65
- cd ..
65
- # newIDE tests:
66
+ # newIDE tests:
66
67
- cd newIDE/app
67
68
- npm test
68
69
- npm run flow
69
70
- npm run check-format
70
71
- npm run check-script-types
71
72
- cd ../..
72
- # GDJS tests:
73
+ # GDJS tests:
73
74
- cd GDJS
74
75
- npm run check-format
75
76
- cd ..
0 commit comments