mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-03 07:29:07 +08:00
Allow builds for all targets
This commit is contained in:
@@ -1,15 +1,35 @@
|
||||
import Action from './action';
|
||||
import Docker from './docker';
|
||||
import Image from './image';
|
||||
import ImageTag from './image-tag';
|
||||
|
||||
describe('Docker', () => {
|
||||
it('builds', async () => {
|
||||
const tag = await Docker.build({
|
||||
// path: Action.rootFolder,
|
||||
dockerfile: `${Action.rootFolder}/Dockerfile`,
|
||||
image: new Image({ version: '2019.2.11f1', targetPlatform: 'WebGL' }),
|
||||
const path = Action.rootFolder;
|
||||
const dockerfile = `${path}/Dockerfile`;
|
||||
const baseImage = new ImageTag({
|
||||
repository: '',
|
||||
name: 'alpine',
|
||||
version: '3',
|
||||
platform: 'Test',
|
||||
});
|
||||
|
||||
expect(tag).toStrictEqual('unity-builder:2019.2.11f1-webgl');
|
||||
const tag = await Docker.build({ path, dockerfile, baseImage }, true);
|
||||
|
||||
expect(tag).toBeInstanceOf(ImageTag);
|
||||
expect(tag.toString()).toStrictEqual('unity-builder:3');
|
||||
}, 240000);
|
||||
|
||||
it.skip('runs', async () => {
|
||||
const image = 'unity-builder:2019.2.11f1-webgl';
|
||||
|
||||
const parameters = {
|
||||
workspace: Action.rootFolder,
|
||||
projectPath: `${Action.rootFolder}/test-project`,
|
||||
buildName: 'someBulidName',
|
||||
buildsPath: 'build',
|
||||
method: '',
|
||||
};
|
||||
|
||||
await Docker.run(image, parameters);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user