简单地说,这可行:
$scope.$on('otro-loaded', (_, inputs) => {
$scope.inputs = angular.copy(inputs);
});
但这不是:
branches:
only:
- master
before_install:
- sudo apt-get update
install:
- sudo apt-get install lua5.2
script:
- lua ./tests/runall_tests.lua
第二个版本的目标是能够运行与第一个版本相同的任务,但可以运行两个不同版本的lua。由于某种原因,我无法使它正常工作。我得到的错误是这样的:
branches:
only:
- master
# Running builds in parallel for lua 5.2 and 5.3
env:
- LUA=lua5.2
- LUA=lua5.3
before_install:
- sudo apt-get update
install:
- sudo apt-get install $LUA
script:
- lua ./tests/runall_tests.lua