Compare commits

...

1 Commits

Author SHA1 Message Date
Florian Rival
3d4766e5eb Fix issues with npm install and npm version 2022-01-11 11:42:26 +00:00
2 changed files with 23 additions and 32 deletions

View File

@@ -17,10 +17,6 @@ cache:
directories:
- $HOME/.npm
env:
global:
- GCC_VERSION="4.8"
services:
# Virtual Framebuffer 'fake' X server for SFML
- xvfb
@@ -40,7 +36,6 @@ addons:
# Build dependencies:
- cmake
- p7zip-full
- g++-4.8
# SFML dependencies:
- libopenal-dev
- libjpeg-dev
@@ -60,30 +55,24 @@ before_install:
- sudo dpkg --force-all -i libstdc++6
install:
# Ensure we use a recent version of Node.js (and npm)
# Ensure we use a recent version of Node.js (and npm).
- nvm install v16 && nvm use v16
#Get the correct version of gcc/g++
- if [ "$CXX" = "g++" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
#Compile the tests only for GDCore
- mkdir .build-tests
- cd .build-tests
- cmake -DBUILD_GDJS=FALSE -DBUILD_TESTS=TRUE -DCMAKE_CXX_COMPILER=$(which $CXX) -DCMAKE_C_COMPILER=$(which $CC) ..
- make -j 4
- cd ..
#- mkdir .build-tests
#- cd .build-tests
#- cmake -DBUILD_GDJS=FALSE -DBUILD_TESTS=TRUE -DCMAKE_CXX_COMPILER=$(which $CXX) -DCMAKE_C_COMPILER=$(which $CC) ..
#- make -j 4
#- cd ..
# Install Emscripten (for GDevelop.js)
- git clone https://github.com/juj/emsdk.git
- cd emsdk
- ./emsdk install 1.39.6
- ./emsdk activate 1.39.6
- source ./emsdk_env.sh
- cd ..
# Install GDevelop.js dependencies and compile it
- cd GDevelop.js
- npm install -g grunt-cli
- npm install
- npm run build
- cd ..
- cd emsdk && ./emsdk install 1.39.6 && ./emsdk activate 1.39.6 && cd ..
# Install GDevelop.js dependencies
- cd GDevelop.js && npm install && cd ..
# Build GDevelop.js
- cd GDevelop.js && source ../emsdk/emsdk_env.sh && npm run build && cd ..
- nvm use v16 # Restore latest Node.js version.
#Install newIDE tests dependencies
- npm -v
- cd newIDE/app && npm install
- cd ../..
#Install GDJS tests dependencies

View File

@@ -15,11 +15,15 @@ branches:
init:
- ps: ''
install:
- ps: Install-Product node 14
# Build GDevelop.js (and run tests to ensure it works)
- ps: Install-Product node 16
# Build GDevelop.js (and run tests to ensure it works).
- cmd: >-
cd GDevelop.js
npm -v
npm install
git clone https://github.com/juj/emsdk.git
cd emsdk
@@ -28,18 +32,16 @@ install:
emsdk activate 1.39.6
emsdk_env.bat
cd ..
npm install
npm run build
cd ..
# Build GDevelop IDE
- cmd: >-
- ps: >-
npm -v
cd newIDE\app
npm install
@@ -50,7 +52,7 @@ install:
cd ..\..
# Package the app for Windows (and sign it with the certificate set in environment variables).
# Package the app for Windows (and sign it with the certificate set in environment variables).
# Don't sign the appx (it will be signed by the Microsoft Store).
build_script:
- ps: >-