From bb4dbb3347e254b9afa2c374f6154a814ed46575 Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Fri, 27 May 2022 10:46:49 -0400 Subject: [PATCH] up node to v16 (#1728) * up node to v16 for webgpu in https://github.com/publiclab/mapknitter/issues/1714 * Delete .travis.yml * gitpod --- .gitpod.dockerfile | 4 +-- .travis.yml | 77 ---------------------------------------------- package.json | 2 +- 3 files changed, 3 insertions(+), 80 deletions(-) delete mode 100755 .travis.yml diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile index 9f9aa560d..97fc05b75 100644 --- a/.gitpod.dockerfile +++ b/.gitpod.dockerfile @@ -1,6 +1,6 @@ FROM gitpod/workspace-mysql -# Install Ruby version 2.4.6 and set it as default +# Install Ruby version 2.7.6 and set it as default RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc -RUN bash -lc "rvm install ruby-2.4.6 && rvm use ruby-ruby-2.4.6 --default" +RUN bash -lc "rvm install ruby-2.7.6 && rvm use ruby-ruby-2.7.6 --default" RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index e102be61d..000000000 --- a/.travis.yml +++ /dev/null @@ -1,77 +0,0 @@ -language: ruby - -rvm: - - 2.4.6 - -node_js: - - "12.6.0" - -services: - - mysql - - docker - -cache: - directories: - - $PWD/node_modules/ - - $PWD/vendor/.bundle/ - -before_install: - - npm i -g npm@6.9.0 - - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.17.3 - - export PATH="$HOME/.yarn/bin:$PATH" - -install: - - cp config/database.yml.example config/database.yml - - cp config/config.yml.example config/config.yml - - cp db/schema.rb.example db/schema.rb - - ./lib/exporter-deps.sh > /dev/null 2>&1 - - bundle check --path vendor/.bundle/ || bundle install --path vendor/.bundle/ - - if [ $RAILS_ENV != 'production' ]; then - yarn check || yarn config set ignore-engines true && yarn install; - fi - - if [ $RAILS_ENV == 'production' ]; then - mysql -e "CREATE DATABASE mapknitter;"; - mysql -e "CREATE USER 'mapknitter'@'%' IDENTIFIED BY 'mapknitter';"; - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'mapknitter'@'%';"; - bundle exec rails db:schema:load; - else - bundle exec rails db:setup || bundle exec rails db:migrate; - fi - -env: - global: - - RAILS_ENV=test - - CI=true - - TRAVIS=true - - DB_HOST='127.0.0.1' - - DB_USER='mapknitter' - - DB_PASS='mapknitter' - - DB_NAME='mapknitter' - -jobs: - include: - - name: "Models Tests" - script: bundle exec rails test:models - - name: "Integration Tests" - script: bundle exec rails test:integration - - name: "Controllers Tests" - script: bundle exec rails test:controllers - - name: "System Tests" - script: bundle exec rails test:system - - name: "Rubocop Linter" - script: bundle exec rubocop - - name: "Development Docker Build" - script: docker build -t mapknitter -f development . - - name: "Production Docker Build" - script: docker build -t mapknitter -f production . - - name: "Asset Precompilation" - env: - - RAILS_ENV=production - script: - - bundle exec rails assets:precompile - -branches: - only: - - main - - unstable - - development diff --git a/package.json b/package.json index 6003feadb..99b262a71 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ }, "engines": { "yarn": ">= 1.0.0", - "node": ">=10.0.0" + "node": ">=16.0.0" }, "devDependencies": {} }