Skip to content

Commit eb995ec

Browse files
Fix emscripten core version (#6729)
Show in developer changelog only
1 parent a076571 commit eb995ec

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.travis.yml

+18-17
Original file line numberDiff line numberDiff line change
@@ -17,59 +17,60 @@ cache:
1717
addons:
1818
apt:
1919
sources:
20-
- ubuntu-toolchain-r-test
20+
- ubuntu-toolchain-r-test
2121
packages:
22-
# Build dependencies:
23-
- cmake
24-
- p7zip-full
22+
# Build dependencies:
23+
- cmake
24+
- p7zip-full
2525

2626
before_install:
2727
# This workaround is required to avoid libstdc++ errors (Emscripten requires a recent version of libstdc++)
2828
- 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
2929
- sudo dpkg --force-all -i libstdc++6
3030

3131
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).
3333
- nvm install v16 && nvm use v16
34-
#Compile the tests only for GDCore
34+
#Compile the tests only for GDCore
3535
- mkdir .build-tests
3636
- cd .build-tests
3737
- cmake -DBUILD_GDJS=FALSE -DBUILD_TESTS=TRUE -DCMAKE_CXX_COMPILER=$(which $CXX) -DCMAKE_C_COMPILER=$(which $CC) ..
3838
- make -j 4
3939
- 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
4243
- cd emsdk && ./emsdk install 3.1.21 && ./emsdk activate 3.1.21 && cd ..
43-
# Install GDevelop.js dependencies
44+
# Install GDevelop.js dependencies
4445
- 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)
4748
- (set -e; cd GDevelop.js && source ../emsdk/emsdk_env.sh && npm run build && cd ..)
48-
# Install newIDE tests dependencies
49+
# Install newIDE tests dependencies
4950
- npm -v
5051
- cd newIDE/app && npm install
5152
- cd ../..
52-
# Install GDJS tests dependencies
53+
# Install GDJS tests dependencies
5354
- cd GDJS && npm install && cd tests && npm install
5455
- cd ../..
5556

5657
script:
57-
# GDCore tests:
58+
# GDCore tests:
5859
- cd .build-tests
5960
- Core/GDCore_tests
6061
- cd ..
61-
# GDevelop.js tests
62+
# GDevelop.js tests
6263
- cd GDevelop.js
6364
- npm test
6465
- cd ..
65-
# newIDE tests:
66+
# newIDE tests:
6667
- cd newIDE/app
6768
- npm test
6869
- npm run flow
6970
- npm run check-format
7071
- npm run check-script-types
7172
- cd ../..
72-
# GDJS tests:
73+
# GDJS tests:
7374
- cd GDJS
7475
- npm run check-format
7576
- cd ..

0 commit comments

Comments
 (0)