Skip to content

Commit

Permalink
Usando GitHub Actions para correr las pruebas
Browse files Browse the repository at this point in the history
Este cambio deja de usar Travis y en vez usa GitHub Actions para correr
las pruebas.
  • Loading branch information
lhchavez committed Aug 24, 2020
1 parent 0c7a897 commit c168b4e
Show file tree
Hide file tree
Showing 60 changed files with 11,432 additions and 8,216 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
pull_request: {}
push:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install JavaScript dependencies
run: npm install

- name: Install Python dependencies
run: |
python3 -m pip install --user setuptools
python3 -m pip install --user wheel
python3 -m pip install --user \
selenium \
pytest
- name: Run karel.js tests
run: npm test

- name: Run Webdriver tests
run: python3 -m pytest test/ --browser=firefox --browser=chrome

lint:
runs-on: ubuntu-latest

env:
HOOK_TOOLS_VERSION: 20200816

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Get docker container
run: docker pull omegaup/hook_tools:${{ env.HOOK_TOOLS_VERSION }}

- name: Run linters
run: |
docker run --rm \
--user "$(id -u):$(id -g)" \
--volume "${PWD}:/src" \
omegaup/hook_tools:${{ env.HOOK_TOOLS_VERSION }} validate --all
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
[submodule "lib/Split.js"]
path = lib/Split.js
url = https://github.com/nathancahill/Split.js.git
[submodule "hook_tools"]
path = hook_tools
url = https://github.com/omegaup/hook_tools.git
5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[MESSAGES CONTROL]
disable=invalid-name,too-few-public-methods,relative-beyond-top-level,import-self

[DESIGN]
max-attributes=20
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

14 changes: 7 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(grunt) {
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jison: {
Expand All @@ -9,7 +9,7 @@ module.exports = function(grunt) {
},
files: {
'js/karelpascal.js': 'gramaticas/karelpascal.jison',
}
},
},
karelJava: {
options: {
Expand All @@ -18,7 +18,7 @@ module.exports = function(grunt) {
},
files: {
'js/kareljava.js': 'gramaticas/kareljava.jison',
}
},
},
karelRuby: {
options: {
Expand All @@ -27,7 +27,7 @@ module.exports = function(grunt) {
},
files: {
'js/karelruby.js': 'gramaticas/karelruby.jison',
}
},
},
},
jshint: {
Expand Down Expand Up @@ -55,14 +55,14 @@ module.exports = function(grunt) {
'js/karelpascal.js',
'js/karelruby.js',
'js/karel.js',
'js/karelide.js'
'js/karelide.js',
],
dest: 'js/karel-distrib.js',
}
},
},
uglify: {
dist: {
files: {'js/karel-distrib.min.js': ['js/karel-distrib.js']},
files: { 'js/karel-distrib.min.js': ['js/karel-distrib.js'] },
},
},
});
Expand Down
100 changes: 58 additions & 42 deletions ayuda.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,61 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Ayuda de Karel.js</title>
<link href="css/bootstrap.css"
rel="stylesheet"
type="text/css">
<link href="css/bootstrap-responsive.css"
rel="stylesheet"
type="text/css">
</head>
<body>
<h1>Ayuda de Karel.js</h1>
<p>Karel.js es un port de <a href=
"http://www.cimat.mx/~amor/Omi/Utilerias/KarelOMI.zip">KarelOMI</a> a JavaScript, y que facilita
la exportación del mundo y la salida esperada a omegaUp.</p>
<p>Para editar el mundo, haz click en él. Click en alguna intersección agrega un zumbador,
Ctrl+Click elimina uno. Shift-Click marca la casilla para que sea incluida en la salida. Puedes
mover a Karel (así como cambiarlo de dirección) usando click derecho.</p>
<p>Una vez que hayas empezado a ejecutar un programa de Karel, tanto el mundo como el editor se
volverán de solo-lectura hasta que hagas click en el botón para regresar al mundo a su estado
original (<button class="btn"
data-toggle="tooltip"
id="worldclean"
title="Regresar el mundo a su estado original"><em class=
"icon-repeat"></em></button>).</p>
<p>Puedes importar un mundo (archivo .mdo) y sus condiciones de ejecución (archivo .kec) usando
el comando Mundo &gt; Importar MDO/KEC.</p>
<ul>
<li>
<a href="manual/Karel.html">Tutorial de Karel - Pascal</a>
</li>
<li>
<a href="manual/KarelJAVA.html">Tutorial de Karel - Java</a>
</li>
<li>
<a href="manual/KarelSyntax_es.html">Gramática de Karel - Pascal</a>
</li>
<li>
<a href="manual/JarelSyntax.html">Gramática de Karel - Java</a>
</li>
</ul>
</body>
<head>
<meta charset="utf-8" />
<title>Ayuda de Karel.js</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link
href="css/bootstrap-responsive.css"
rel="stylesheet"
type="text/css"
/>
</head>
<body>
<h1>Ayuda de Karel.js</h1>
<p>
Karel.js es un port de
<a href="http://www.cimat.mx/~amor/Omi/Utilerias/KarelOMI.zip"
>KarelOMI</a
>
a JavaScript, y que facilita la exportación del mundo y la salida esperada
a omegaUp.
</p>
<p>
Para editar el mundo, haz click en él. Click en alguna intersección agrega
un zumbador, Ctrl+Click elimina uno. Shift-Click marca la casilla para que
sea incluida en la salida. Puedes mover a Karel (así como cambiarlo de
dirección) usando click derecho.
</p>
<p>
Una vez que hayas empezado a ejecutar un programa de Karel, tanto el mundo
como el editor se volverán de solo-lectura hasta que hagas click en el
botón para regresar al mundo a su estado original (
<button
class="btn"
data-toggle="tooltip"
id="worldclean"
title="Regresar el mundo a su estado original"
>
<em class="icon-repeat"></em></button
>).
</p>
<p>
Puedes importar un mundo (archivo .mdo) y sus condiciones de ejecución
(archivo .kec) usando el comando Mundo &gt; Importar MDO/KEC.
</p>
<ul>
<li>
<a href="manual/Karel.html">Tutorial de Karel - Pascal</a>
</li>
<li>
<a href="manual/KarelJAVA.html">Tutorial de Karel - Java</a>
</li>
<li>
<a href="manual/KarelSyntax_es.html">Gramática de Karel - Pascal</a>
</li>
<li>
<a href="manual/JarelSyntax.html">Gramática de Karel - Java</a>
</li>
</ul>
</body>
</html>
Loading

0 comments on commit c168b4e

Please sign in to comment.