mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
up node to v16 (#1728)
* up node to v16 for webgpu in https://github.com/publiclab/mapknitter/issues/1714 * Delete .travis.yml * gitpod
This commit is contained in:
@@ -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
|
||||
|
||||
77
.travis.yml
77
.travis.yml
@@ -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
|
||||
@@ -45,7 +45,7 @@
|
||||
},
|
||||
"engines": {
|
||||
"yarn": ">= 1.0.0",
|
||||
"node": ">=10.0.0"
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user