From 1f1ad8de0d9f5e1bac434df02e020c7a3a23fb73 Mon Sep 17 00:00:00 2001 From: Octav Sandulescu Date: Mon, 14 May 2018 10:34:04 +0000 Subject: [PATCH] Switch to CircleCI 2.0 --- .circleci/config.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++ circle.yml | 19 ---------------- 2 files changed, 54 insertions(+), 19 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..f944f8b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,54 @@ +# This configuration was automatically generated from a CircleCI 1.0 config. +version: 2 +jobs: + build: + working_directory: ~/narc0tiq/EvoGUI + parallelism: 1 + shell: /bin/bash --login + + environment: + CIRCLE_ARTIFACTS: /tmp/circleci-artifacts + CIRCLE_TEST_REPORTS: /tmp/circleci-test-results + + docker: + - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37 + command: /sbin/init + + steps: + - checkout + # Prepare for artifact and test results collection equivalent to how it was done on 1.0. + # In many cases you can simplify this from what is generated here. + # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' + - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS + +# - restore_cache: +# keys: +# # This branch if available +# - v1-dep-{{ .Branch }}- +# # Default branch if not +# - v1-dep-master- +# # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly +# - v1-dep- + + - run: sudo apt-get update; sudo apt-get install lua5.2 + - run: rm Makefile + - run: wget https://github.com/narc0tiq/factorio-mod-makefile/raw/master/Makefile + +# - save_cache: +# key: v1-dep-{{ .Branch }}-{{ epoch }} +# paths: +# # This is a broad list of cache paths to include many possible development environments +# # You can probably delete some of these entries +# - vendor/bundle +# - ~/virtualenvs +# - ~/.m2 +# - ~/.ivy2 +# - ~/.bundle +# - ~/.go_workspace +# - ~/.gradle +# - ~/.cache/bower + + - run: make package clean + + - store_artifacts: + path: pkg/ diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 2d5ffb0..0000000 --- a/circle.yml +++ /dev/null @@ -1,19 +0,0 @@ -dependencies: - pre: - - sudo apt-get update; sudo apt-get install lua5.2 - post: - - rm Makefile - - wget https://github.com/narc0tiq/factorio-mod-makefile/raw/master/Makefile - - -test: - override: - - make package - - -deployment: - release-candidate: - branch: master - commands: - - mv pkg/*.zip $CIRCLE_ARTIFACTS -