From 2e90190b4017d619091ccfd7588555c297fe2cf6 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 27 Jul 2017 22:55:57 -0700 Subject: [PATCH] Add CircleCI script --- .circleci/config.yml | 241 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..51a5cd271 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,241 @@ +version: 2 +jobs: + + #TODO: Use 'persist_to_workspace' to reduce duplication + + html5-3.2: + docker: + - image: openfl/openfl-tests-unit-3.2:0.0.1 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit test -browser phantomjs -nocffi + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld html5 + - run: haxelib run lime build SimpleAudio html5 + - run: haxelib run lime build SimpleImage html5 + + neko-3.2: + docker: + - image: openfl/openfl-tests-unit-3.2:0.0.1 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild linux -release -64 -nocffi + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run lime build neko -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run lime build neko -Ddisable-cffi -nocffi + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld neko + - run: haxelib run lime build SimpleAudio neko + - run: haxelib run lime build SimpleImage neko + + cpp-3.2: + docker: + - image: openfl/openfl-tests-unit-3.2:0.0.1 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild linux -release -64 -nocffi + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run lime test linux --window-hardware=false + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld linux + - run: haxelib run lime build SimpleAudio linux + - run: haxelib run lime build SimpleImage linux + + flash-3.2: + docker: + - image: openfl/openfl-tests-unit-3.2:0.0.1 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit test -as3 -norun -nocffi + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld flash + - run: haxelib run lime build SimpleAudio flash + - run: haxelib run lime build SimpleImage flash + + docs-3.2: + docker: + - image: openfl/openfl-tests-unit-3.2:0.0.1 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: git clone https://github.com/openfl/dox ~/dox --depth 1 + - run: haxelib dev dox ~/dox + - run: cd ~/project/docs && haxe build.hxml + +###### + + html5-3.4: + docker: + - image: openfl/openfl-tests-unit-3.4:0.0.2 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit test -browser phantomjs -nocffi + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld html5 + - run: haxelib run lime build SimpleAudio html5 + - run: haxelib run lime build SimpleImage html5 + + neko-3.4: + docker: + - image: openfl/openfl-tests-unit-3.4:0.0.2 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild linux -release -64 -nocffi + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run lime build neko -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run lime build neko -Ddisable-cffi -nocffi + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld neko + - run: haxelib run lime build SimpleAudio neko + - run: haxelib run lime build SimpleImage neko + + cpp-3.4: + docker: + - image: openfl/openfl-tests-unit-3.4:0.0.2 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild linux -release -64 -nocffi + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run lime test linux --window-hardware=false + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld linux + - run: haxelib run lime build SimpleAudio linux + - run: haxelib run lime build SimpleImage linux + + flash-3.4: + docker: + - image: openfl/openfl-tests-unit-3.4:0.0.2 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: haxelib run lime rebuild tools -nocffi + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit gen + # - run: + # working_directory: ~/project/tests/unit + # command: haxelib run munit test -as3 -norun -nocffi + - run: haxelib run lime create HelloWorld + - run: haxelib run lime create SimpleAudio + - run: haxelib run lime create SimpleImage + - run: haxelib run lime create TextRendering + - run: haxelib run lime build HelloWorld flash + - run: haxelib run lime build SimpleAudio flash + - run: haxelib run lime build SimpleImage flash + + docs-3.4: + docker: + - image: openfl/openfl-tests-unit-3.4:0.0.2 + steps: + - checkout + - run: + name: Setup Lime dev directory + command: haxelib dev lime ~/project + - run: git clone https://github.com/openfl/dox ~/dox --depth 1 + - run: haxelib dev dox ~/dox + - run: cd ~/project/docs && haxe build.hxml + +workflows: + version: 2 + haxe-3.2: + jobs: + - html5-3.2 + - neko-3.2 + - cpp-3.2 + - flash-3.2 + - docs-3.2 + haxe-3.4: + jobs: + - html5-3.4 + - neko-3.4 + - cpp-3.4 + - flash-3.4 + - docs-3.4 \ No newline at end of file