Reset the CI pipeline step conditions (don't force everything to run every time anymore)
This commit is contained in:
parent
8b54f0acab
commit
adbab97ca1
@ -21,16 +21,15 @@ pipeline:
|
||||
# - offline_twatter_passwd
|
||||
- offline_twatter_session_file
|
||||
environment:
|
||||
- SESSION_FILE_PATH=/tmp/Offline_Twatter.session # Temp location, to be imported by the integration test
|
||||
# when: # At least one
|
||||
# - path:
|
||||
# - pkg/scraper/**
|
||||
# - cmd/**
|
||||
# - branch: v*.*.*
|
||||
- SESSION_FILE_PATH=/tmp/Offline_Twatter.session # Temp location, to be imported by the integration test
|
||||
when: # At least one
|
||||
- path:
|
||||
- pkg/scraper/**
|
||||
- cmd/**
|
||||
- branch: v*.*.*
|
||||
commands:
|
||||
- cd cmd
|
||||
- mkdir -p $(dirname $SESSION_FILE_PATH) # Make the temp directory...
|
||||
- ls /tmp
|
||||
- echo "$OFFLINE_TWATTER_SESSION_FILE" > $SESSION_FILE_PATH # ...and write the session file to temp location
|
||||
- ./tests.sh
|
||||
|
||||
@ -46,8 +45,8 @@ pipeline:
|
||||
|
||||
version_bump_test:
|
||||
image: offline-twitter/go
|
||||
# when:
|
||||
# branch: v*.*.*
|
||||
when:
|
||||
branch: v*.*.*
|
||||
secrets:
|
||||
# - offline_twatter_passwd
|
||||
- offline_twatter_session_file
|
||||
|
@ -101,6 +101,7 @@ func (app *Application) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// Serve directly from the embedded files
|
||||
http.FileServer(http.FS(embedded_files)).ServeHTTP(w, r)
|
||||
} else {
|
||||
// Serve from disk
|
||||
http.StripPrefix("/static", http.FileServer(http.Dir(get_filepath("static")))).ServeHTTP(w, r)
|
||||
}
|
||||
case "tweet":
|
||||
|
@ -387,7 +387,6 @@ func (p Profile) fill_dm_contents(trove *TweetTrove) {
|
||||
panic(err)
|
||||
}
|
||||
for _, vid := range videos {
|
||||
println("asdfasfasdf")
|
||||
msg := trove.Messages[vid.DMMessageID]
|
||||
msg.Videos = []Video{vid}
|
||||
trove.Messages[msg.ID] = msg
|
||||
|
Loading…
x
Reference in New Issue
Block a user