diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..652c9b5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: Tests CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: configure + run: | + touch tests/include/pebble_warn_unsupported_functions.h + - name: make test + run: make test + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7b51784..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: c -install: ./tests/travis-install.sh -script: make test diff --git a/README.md b/README.md index 970b2c0..8495ac3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Linked List [![Build Status](http://img.shields.io/travis/smallstoneapps/linked-list.svg?style=flat-square)](https://travis-ci.org/smallstoneapps/linked-list/) [![npm (scoped)](https://img.shields.io/npm/v/@smallstoneapps/linked-list.svg?maxAge=2592000&style=flat-square)](https://www.npmjs.com/package/@smallstoneapps/linked-list) [![MIT License](http://img.shields.io/badge/license-MIT-lightgray.svg?style=flat-square)](./LICENSE) +# Linked List [![Build Status](https://github.com/pebble-dev/linked-list/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/pebble-dev/linked-list/actions/workflows/ci.yml) [![npm (scoped)](https://img.shields.io/npm/v/@rebble/linked-list.svg?maxAge=2592000&style=flat-square)](https://www.npmjs.com/package/@rebble/linked-list) [![MIT License](http://img.shields.io/badge/license-MIT-lightgray.svg?style=flat-square)](./LICENSE) A simple linked list implementation for Pebble apps and watchfaces. @@ -9,7 +9,7 @@ A simple linked list implementation for Pebble apps and watchfaces. To install the package to your app, use the pebble tool: ``` -pebble package install @smallstoneapps/linked-list +pebble package install @rebble/linked-list ``` ## Usage @@ -18,7 +18,7 @@ pebble package install @smallstoneapps/linked-list // This is not a complete example, but should demonstrate the basic usage of // the Linked List library. -#include <@smallstoneapps/linked-list/linked-list.h> +#include <@rebble/linked-list/linked-list.h> LinkedRoot* root; diff --git a/demo/package.json b/demo/package.json index 4165e66..564795e 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,6 +1,6 @@ { - "name": "@smallstoneaps/linked-list-demo", - "version": "1.1.0", + "name": "@rebble/linked-list-demo", + "version": "1.2.0", "author": "Matthew Tole", "description": "Demo app to show the basic usage of the linked-list package", "main": "src/demo.c", @@ -10,7 +10,7 @@ "license": "MIT", "private": true, "dependencies": { - "@smallstoneapps/linked-list": "../" + "@rebble/linked-list": "../" }, "keywords": [ "pebble-app" @@ -35,7 +35,8 @@ "basalt", "chalk", "diorite", - "emery" + "emery", + "flint" ], "capabilities": [] } diff --git a/demo/src/demo.c b/demo/src/demo.c index 004a3b2..b311946 100644 --- a/demo/src/demo.c +++ b/demo/src/demo.c @@ -1,5 +1,5 @@ #include -#include <@smallstoneapps/linked-list/linked-list.h> +#include <@rebble/linked-list/linked-list.h> static void init(void); static void deinit(void); diff --git a/package.json b/package.json index e439ad0..701ce8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@smallstoneapps/linked-list", - "version": "1.4.0", + "name": "@rebble/linked-list", + "version": "1.5.0", "description": "Pebble library for doing linked lists", "main": "src/c/linked-list.c", "directories": { @@ -14,14 +14,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/smallstoneapps/linked-list.git" + "url": "git+https://github.com/pebble-dev/linked-list.git" }, "author": "Matthew Tole ", "license": "MIT", "bugs": { - "url": "https://github.com/smallstoneapps/linked-list/issues" + "url": "https://github.com/pebble-dev/linked-list/issues" }, - "homepage": "https://github.com/smallstoneapps/linked-list#readme", + "homepage": "https://github.com/pebble-dev/linked-list#readme", "pebble": { "projectType": "package", "sdkVersion": "3", @@ -30,7 +30,8 @@ "basalt", "chalk", "diorite", - "emery" + "emery", + "flint" ] }, "files": [ diff --git a/tests/linked-list.c b/tests/linked-list.c index d95b0cf..61f62f4 100644 --- a/tests/linked-list.c +++ b/tests/linked-list.c @@ -2,7 +2,7 @@ #include "unit.h" #include "linked-list.h" -#define VERSION_LABEL "1.4.0" +#define VERSION_LABEL "1.5.0" // Colour code definitions to make the output all pretty. #define KNRM "\x1B[0m" diff --git a/tests/travis-install.sh b/tests/travis-install.sh deleted file mode 100755 index 5e7baa7..0000000 --- a/tests/travis-install.sh +++ /dev/null @@ -1,13 +0,0 @@ -SDK_VERSION=2.8.1 -SDK_ZIP_NAME=PebbleSDK-$SDK_VERSION.tar.gz - -wget http://assets.getpebble.com.s3-website-us-east-1.amazonaws.com/sdk2/$SDK_ZIP_NAME -tar -zxf $SDK_ZIP_NAME -mkdir -p tests/include -mv PebbleSDK-$SDK_VERSION/Pebble/include/pebble.h tests/include/ -mv PebbleSDK-$SDK_VERSION/Pebble/include/pebble_fonts.h tests/include/ -mv PebbleSDK-$SDK_VERSION/Pebble/include/pebble_process_info.h tests/include/ -mv PebbleSDK-$SDK_VERSION/Pebble/include/pebble_worker.h tests/include/ -touch tests/include/pebble_warn_unsupported_functions.h -rm $SDK_ZIP_NAME -rm -r PebbleSDK-$SDK_VERSION/