-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
61 lines (50 loc) · 1.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: cpp
os: linux
sudo: false
dist: trusty
env:
global:
- DEVKITPRO=/opt/devkitpro
- DEVKITARM=/opt/devkitpro/devkitARM
cache:
directories:
- "$HOME/.local"
- "$DEVKITPRO"
before_install:
- curl -L https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -o pacman.deb
- sudo apt-get install -y p7zip-full
install:
- sudo dpkg -i pacman.deb
- sudo dkp-pacman -Sy
- sudo dkp-pacman -S devkitARM general-tools dstools ndstool libnds libfat-nds grit mmutil --noconfirm
- export DEVKITPRO=/opt/devkitpro
- export DEVKITARM=${DEVKITPRO}/devkitARM
script:
- export COMMIT_TAG="$(git log --format=%h -1)"
- export COMMIT_MESSAGE="$(git log --pretty=format:"%an - %s" -1)"
- make
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- libstdc++6
- lftp
after_success:
- echo 'yummy breakfast :3 (Build Successful)'
- git config --local user.name "antoine62"
- git clone --depth 1 https://$GITHUB_TOKEN@github.com/antoine62/builds.git
- ls
- cd builds/
- ls
- cd YSTheme
- cp ../../YSTheme.nds YSTheme.nds
- git stage .
- git commit -m "YSTheme | $COMMIT_TAG"
- git push origin master
- export CURRENT_DATE=$(date +'%Y%m%d-%H%M%S')
- git tag v$CURRENT_DATE
after_failure:
- echo 'gross breakfast (Build Failed)'