Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
inthewaves committed Jun 8, 2019
0 parents commit a328994
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# TI files
*.9xz
*.89z
*.v2z

# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: c
dist: trusty
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y --no-install-recommends libc6:i386
install:
- wget http://tigcc.ticalc.org/linux/tigcc_bin.tar.bz2
- mkdir tigcc
- cd tigcc/
- tar -xjf ../tigcc_bin.tar.bz2
- export PATH=$PATH:$PWD/bin/
- export TIGCC=$PWD
- cd ../
script:
- mkdir _build
- tigcc -O2 -o _build/hello hello.c
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file:
- "_build/hello.89z"
- "_build/hello.9xz"
- "_build/hello.v2z"
skip_cleanup: true
on:
tags: true
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 inthewaves

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[![Build Status](https://travis-ci.com/inthewaves/tigcc-ci-test.svg?branch=master)](https://travis-ci.com/inthewaves/tigcc-ci-test)

# TIGCC CI Test
A repo for testing out continuous integration for executable files for the TI89 (.89z file),
TI92+ (.9xz), and TI-V200 (.v2z) graphing calculators.

Note that the `libc6:i386` package is required to run TIGCC.
18 changes: 18 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Compile for TI89 (.89z file), TI92+ (.9xz), and TI-V200 (.v2z)
#define USE_TI89
#define USE_TI92P
#define USE_V200

#include <tigcclib.h>

void _main() {
// Clear screen
clrscr();

// Print Hello world!
printf("Hello world. This is the CI test.");

// Standby and wait for user input
ngetchx();
}

0 comments on commit a328994

Please sign in to comment.