diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 31f100a01..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,66 +0,0 @@ -version: 2.1 -jobs: - build: - working_directory: ~/project - docker: - - image: circleci/openjdk:8-jdk - environment: - - BUILD_ANDROID=YES - parallelism: 2 - steps: - - checkout - - run: - name: Install Dependencies - command: | - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg - echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list - sudo apt-get update - sudo apt-get -qq install wget unzip libgd-dev libc6-i386 lib32stdc++6 lib32gcc-s1 lib32ncurses6 lib32z1 jq ant lib32ncurses6 libgd-dev - - wget https://dl.google.com/android/repository/android-ndk-r22-linux-x86_64.zip -nv - wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz -nv - - - run: - name: Setup Android - command: | - export ANDROID="android-sdk-linux/tools/android" - export PATH="$PATH:$ANDROID_HOME/tools" - unzip android-ndk-r22-linux-x86_64.zip - tar -zxf android-sdk_r24.4.1-linux.tgz - $ANDROID list sdk --extended -a && - echo yes | $ANDROID update sdk -a -t tools,platform-tools,build-tools-23.0.1,android-23 --no-ui --force --no-https - sudo apt-get install openjdk-11-jdk - export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 - export PATH=$JAVA_HOME/bin:$PATH - - - run: - name: Build Android - command: | - echo $PWD - bash ./tools/circle-script.sh - - - run: - name: Install Required Packages - command: | - sudo apt-get update - sudo apt-get install -y curl python3-pip bzip2 - curl -L https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar xjvf - - sudo pip install --upgrade pip - sudo pip install setuptools-rust - sudo pip install pyOpenSSL - sudo pip install pyjavaproperties - sudo pip install github3.py - sudo pip install cpp-coveralls - - - run: - name: Upload APK to GitHub Releases - command: | - #python tools/upload-binaries.py -t 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 -s $TRAVIS_COMMIT -l core.zip -r Wagic-core.zip -b $TRAVIS_BRANCH - curl -L https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar xjvf - - ./bin/linux/amd64/github-release upload \ - --user EduardoMunozGomez \ - --repo wagic \ - --tag circle \ - --name Wagic-debug.apk \ - --file projects/mtg/Android/bin/Wagic-debug.apk \ diff --git a/tools/circle-script.sh b/tools/circle-script.sh deleted file mode 100644 index 7d187fd5e..000000000 --- a/tools/circle-script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -e - -# let's dump some info to debug a bit -echo ls = `ls` -echo pwd = `pwd` -# computing potential release name -echo CIRCLE_PR_NUMBER = $CIRCLE_PR_NUMBER -echo CIRCLE_BRANCH = $CIRCLE_BRANCH - -if [ -z "$CIRCLE_PR_NUMBER" ]; then - if [ "$CIRCLE_BRANCH" = "alphas" ]; then - export RELEASE_NAME="alpha-${CIRCLE_BUILD_NUM}" - elif [ "$CIRCLE_BRANCH" = "master" ]; then - export RELEASE_NAME="latest-master" - fi -fi - -echo RELEASE_NAME = $RELEASE_NAME - - -# updating versions with the CIRCLE build numbers -cd projects/mtg/ -ant update > error.txt -cd ../.. - -# we create resource package -if [ "$BUILD_RES" = "YES" ] || [ "$BUILD_PSP" = "YES" ]; then - cd projects/mtg/bin/Res - python createResourceZip.py - # if we let the zip here, Wagic will use it in the testsuite - # and we'll get 51 failed test cases - mv core_*.zip ../../../../core.zip - cd ../../../.. -fi - -# we're building an Android binary here -if [ "$BUILD_ANDROID" = "YES" ]; then - android-ndk-r22/ndk-build -C projects/mtg/Android -j4 - android-sdk-linux/tools/android list targets - android-sdk-linux/tools/android update project -t 1 -p projects/mtg/Android - ant debug -f projects/mtg/Android/build.xml -fi