diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..40f0f386 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libs/libnx"] + path = libs/libnx + url = git@github.com:switchbrew/libnx.git diff --git a/.travis.yml b/.travis.yml index b4e38efe..e4574c22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,37 @@ +sudo: required + language: cpp + cache: directories: - /opt/devkitpro/pacman/var/cache/pacman/pkg/ + +git: + submodules: false + before_install: + - sed -i 's/git@github.com:/git:\/\/github.com\//' .gitmodules # Travis can't deal with the user 'git'... + - git submodule update --init --recursive - wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb - sudo dpkg -i devkitpro-pacman.deb - sudo dkp-pacman -S switch-{dev,curl,freetype} --noconfirm - - sudo git clone https://github.com/switchbrew/libnx - - sudo make install -C ./libnx - source /etc/profile.d/devkit-env.sh + - sudo make install -C ./libs/libnx/nx + script: - make + +before_deploy: + - export TRAVIS_TAG=snapshot + +deploy: + provider: releases + prerelease: true + api_key: $GITHUB_TOKEN + file: out/EdiZon.nro + skip_cleanup: true + overwrite: true + name: "Snapshot Build" + body: "This build could be unstable, you may install and use it at your own risk." + on: + branch: master \ No newline at end of file diff --git a/libs/libnx b/libs/libnx new file mode 160000 index 00000000..f17773c6 --- /dev/null +++ b/libs/libnx @@ -0,0 +1 @@ +Subproject commit f17773c64f300909b30db49be3d2ec12ebf2674f