From 57556590756283a74ec93c25091c5610a219e2a7 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Mon, 23 Apr 2018 16:23:27 +0200 Subject: [PATCH] CI: use node 9 and one job for build and tests --- .gitlab-ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e5ce875..fe74b27 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ stages: - - build - - test + - build_and_tests .nvm_env: &nvm_env tags: @@ -10,16 +9,12 @@ stages: - export NVM_DIR="$HOME/.nvm" - . "$NVM_DIR/nvm.sh" - export PATH="$HOME/.cargo/bin:$PATH" + - nvm install 9.4.0 + - nvm use 9.4.0 -build: +build_and_tests: <<: *nvm_env - stage: build - script: - - npm install - -test: - <<: *nvm_env - stage: test + stage: build_and_tests script: - npm install - npm test -- GitLab